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
    @NotNull Chunk
    createChunk(@NotNull Instance instance, int chunkX, int chunkZ)
    Creates a Chunk object.
  • Method Details

    • createChunk

      @NotNull @NotNull Chunk createChunk(@NotNull @NotNull Instance instance, int chunkX, int chunkZ)
      Creates a Chunk object.
      Parameters:
      instance - the linked instance
      chunkX - the chunk X
      chunkZ - the chunk Z
      Returns:
      a newly Chunk object, cannot be null