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 TypeMethodDescriptionvoid
generateChunkData
(@NotNull ChunkBatch batch, int chunkX, int chunkZ) Deprecated.Called when the blocks in theChunk
should be set usingChunkBatch.setBlock(int, int, int, Block)
or similar.@Nullable List
<ChunkPopulator> Deprecated.Gets all theChunkPopulator
of this generator.
-
Method Details
-
generateChunkData
Deprecated.Called when the blocks in theChunk
should be set usingChunkBatch.setBlock(int, int, int, Block)
or similar.WARNING: all positions are chunk-based (0-15).
- Parameters:
batch
- theChunkBatch
which will be flush after the generationchunkX
- the chunk XchunkZ
- the chunk Z
-
getPopulators
Deprecated.Gets all theChunkPopulator
of this generator.- Returns:
- a
List
ofChunkPopulator
, can be null or empty
-
Generator