HyCodeYourTale
classpublicPriority 3

ChunkStore

com.hypixel.hytale.server.core.universe.world.storage.ChunkStore

implements WorldProvider

26

Methods

26

Public Methods

5

Fields

1

Constructors

Constants

longFAILURE_BACKOFF_NANOS= TimeUnit.MILLISECONDS.toNanos(1L)
CodecKey<Holder<ChunkStore>>HOLDER_CODEC_KEY= new CodecKey<>("ChunkHolder")
SystemGroup<ChunkStore>INIT_GROUP= REGISTRY.registerSystemGroup()
SystemType<ChunkStore, ChunkStore.LoadFuturePacketDataQuerySystem>LOAD_FUTURE_PACKETS_DATA_QUERY_SYSTEM_TYPE= REGISTRY.registerSystemType( ChunkStore.LoadFuturePacketDataQuerySystem.class )
SystemType<ChunkStore, ChunkStore.LoadPacketDataQuerySystem>LOAD_PACKETS_DATA_QUERY_SYSTEM_TYPE= REGISTRY.registerSystemType( ChunkStore.LoadPacketDataQuerySystem.class )
HytaleLoggerLOGGER= HytaleLogger.forEnclosingClass()
longMAX_FAILURE_BACKOFF_NANOS= TimeUnit.SECONDS.toNanos(10L)
MetricsRegistry<ChunkStore>METRICS_REGISTRY= new MetricsRegistry<ChunkStore>() .register("Store", ChunkStore::getStore, Store.METRICS_RE...
ComponentRegistry<ChunkStore>REGISTRY= new ComponentRegistry<>()
ResourceType<ChunkStore, ChunkSavingSystems.Data>SAVE_RESOURCE= REGISTRY.registerResource( ChunkSavingSystems.Data.class, ChunkSavingSystems.Data::new )
SystemType<ChunkStore, ChunkStore.UnloadPacketDataQuerySystem>UNLOAD_PACKETS_DATA_QUERY_SYSTEM_TYPE= REGISTRY.registerSystemType( ChunkStore.UnloadPacketDataQuerySystem.class )
ResourceType<ChunkStore, ChunkUnloadingSystem.Data>UNLOAD_RESOURCE= REGISTRY.registerResource( ChunkUnloadingSystem.Data.class, ChunkUnloadingSystem.Data::new ...

Constructors

public
ChunkStore(World world)

Methods

Public Methods (26)

public
<T extends Component<ChunkStore>> T getChunkComponent(long index, ComponentType<ChunkStore, T> componentType)
@Nullable
public
LongSet getChunkIndexes()
@Nonnull
public
Ref<ChunkStore> getChunkReference(long index)
@Nullable
public
CompletableFuture<Ref<ChunkStore>> getChunkReferenceAsync(long index)
@Nonnull
public
CompletableFuture<Ref<ChunkStore>> getChunkReferenceAsync(long index, int flags)
@Nonnull
public
Ref<ChunkStore> getChunkSectionReference(int x, int y, int z)
@Nullable
public
Ref<ChunkStore> getChunkSectionReference(ComponentAccessor<ChunkStore> commandBuffer, int x, int y, int z)
@Nullable
public
CompletableFuture<Ref<ChunkStore>> getChunkSectionReferenceAsync(int x, int y, int z)
@Nonnull
public
IWorldGen getGenerator()
@Nullable
public
SystemGroup<ChunkStore> getGroup()
@Nullable@Override
public
int getLoadedChunksCount()
public
IChunkLoader getLoader()
@Nullable
public
IChunkSaver getSaver()
@Nullable
public
Store<ChunkStore> getStore()
@Nonnull
public
int getTotalGeneratedChunksCount()
public
int getTotalLoadedChunksCount()
public
World getWorld()
@Nonnull@Override
public
boolean isChunkOnBackoff(long index, long maxFailureBackoffNanos)
public
void onSystemAddedToStore(Store<ChunkStore> store)
@Override
public
void onSystemRemovedFromStore(Store<ChunkStore> store)
@Override
public
void remove(Ref<ChunkStore> reference, RemoveReason reason)
public
void setGenerator(IWorldGen generator)
public
void shutdown()
public
void shutdownGenerator()
public
void start(IResourceStorage resourceStorage)
public
void waitForLoadingChunks()

Fields

Private/Package Fields (5)

privateIWorldGen generator
privateIChunkLoader loader
privateIChunkSaver saver
privateStore<ChunkStore> store
privateWorld world

Related Classes