Package net.minestom.server.instance
Interface ChunkGenerator
Deprecated.
Responsible for the
Chunk generation, can be set using Instance.setChunkGenerator(ChunkGenerator).
Called if the instance IChunkLoader hasn't been able to load the chunk.
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateChunkData(@NotNull ChunkBatch batch, int chunkX, int chunkZ) Deprecated.Called when the blocks in theChunkshould be set usingChunkBatch.setBlock(int, int, int, Block)or similar.@Nullable List<ChunkPopulator> Deprecated.Gets all theChunkPopulatorof this generator.
-
Method Details
-
generateChunkData
Deprecated.Called when the blocks in theChunkshould be set usingChunkBatch.setBlock(int, int, int, Block)or similar.WARNING: all positions are chunk-based (0-15).
- Parameters:
batch- theChunkBatchwhich will be flush after the generationchunkX- the chunk XchunkZ- the chunk Z
-
getPopulators
Deprecated.Gets all theChunkPopulatorof this generator.- Returns:
- a
ListofChunkPopulator, can be null or empty
-
Generator