Interface ChunkSupplier

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface ChunkSupplier
Used to customize which type of Chunk an implementation should use.
  • Method Summary

    Modifier and Type Method Description
    Chunk getChunk​(Biome[] biomes, int chunkX, int chunkZ)
    Creates a Chunk object.
  • Method Details

    • getChunk

      @NotNull Chunk getChunk​(@Nullable Biome[] biomes, int chunkX, int chunkZ)
      Creates a Chunk object.
      Parameters:
      biomes - the biomes of the chunk, can be null
      chunkX - the chunk X
      chunkZ - the chunk Z
      Returns:
      a newly Chunk object, cannot be null