Class MinestomBasicChunkLoader

java.lang.Object
net.minestom.server.instance.MinestomBasicChunkLoader
All Implemented Interfaces:
IChunkLoader

public class MinestomBasicChunkLoader
extends java.lang.Object
implements IChunkLoader
A IChunkLoader used by InstanceContainer which is based on the StorageLocation and ChunkSupplier associated to it.

It simply save chunk serialized data from Chunk.getSerializedData() and deserialize it later with Chunk.readChunk(BinaryReader, ChunkCallback).

The key used in the StorageLocation is defined by getChunkKey(int, int) and should NOT be changed.