HyCodeYourTale
classpublicPriority 3

DefaultChunkStorageProvider

com.hypixel.hytale.server.core.universe.world.storage.provider.DefaultChunkStorageProvider

implements IChunkStorageProvider

3

Methods

3

Public Methods

0

Fields

1

Constructors

Constants

BuilderCodec<DefaultChunkStorageProvider>CODEC= BuilderCodec.builder(DefaultChunkStorageProvider.class, () -> INSTANCE) .documentation("Sel...
IChunkStorageProviderDEFAULT= new IndexedStorageChunkStorageProvider()
StringID= "Hytale"
DefaultChunkStorageProviderINSTANCE= new DefaultChunkStorageProvider()

Constructors

public
DefaultChunkStorageProvider()

Methods

Public Methods (3)

public
IChunkLoader getLoader(Store<ChunkStore> store)

throws IOException

@Nonnull@Override
public
IChunkSaver getSaver(Store<ChunkStore> store)

throws IOException

@Nonnull@Override
public
String toString()
@Nonnull@Override

Inheritance

Parent
Current
Interface
Child

Use mouse wheel to zoom, drag to pan. Click nodes to navigate.

Related Classes

Source Code

package com.hypixel.hytale.server.core.universe.world.storage.provider;

import com.hypixel.hytale.codec.builder.BuilderCodec;
import com.hypixel.hytale.component.Store;
import com.hypixel.hytale.server.core.universe.world.storage.ChunkStore;
import com.hypixel.hytale.server.core.universe.world.storage.IChunkLoader;
import com.hypixel.hytale.server.core.universe.world.storage.IChunkSaver;
import java.io.IOException;
import javax.annotation.Nonnull;

public class DefaultChunkStorageProvider implements IChunkStorageProvider {
   @Nonnull
   public static final DefaultChunkStorageProvider INSTANCE = new DefaultChunkStorageProvider();
   public static final String ID = "Hytale";
   @Nonnull
   public static final BuilderCodec<DefaultChunkStorageProvider> CODEC = BuilderCodec.builder(DefaultChunkStorageProvider.class, () -> INSTANCE)
      .documentation("Selects the default recommended storage as decided by the server.")
      .build();
   @Nonnull
   public static final IChunkStorageProvider DEFAULT = new IndexedStorageChunkStorageProvider();

   public DefaultChunkStorageProvider() {
   }

   @Nonnull
   @Override
   public IChunkLoader getLoader(@Nonnull Store<ChunkStore> store) throws IOException {
      return DEFAULT.getLoader(store);
   }

   @Nonnull
   @Override
   public IChunkSaver getSaver(@Nonnull Store<ChunkStore> store) throws IOException {
      return DEFAULT.getSaver(store);
   }

   @Nonnull
   @Override
   public String toString() {
      return "DefaultChunkStorageProvider{DEFAULT=" + DEFAULT + "}";
   }
}