Interface ChunkGenerator


@Deprecated public interface ChunkGenerator
Deprecated.
Replaced by Generator
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 Details

    • generateChunkData

      void generateChunkData(@NotNull @NotNull ChunkBatch batch, int chunkX, int chunkZ)
      Deprecated.
      Called when the blocks in the Chunk should be set using ChunkBatch.setBlock(int, int, int, Block) or similar.

      WARNING: all positions are chunk-based (0-15).

      Parameters:
      batch - the ChunkBatch which will be flush after the generation
      chunkX - the chunk X
      chunkZ - the chunk Z
    • getPopulators

      @Nullable @Nullable List<ChunkPopulator> getPopulators()
      Deprecated.
      Gets all the ChunkPopulator of this generator.
      Returns:
      a List of ChunkPopulator, can be null or empty