Interface Chunk


public interface Chunk
Represents a chunk of the world.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    biome(int x, int y, int z, @NotNull Biome biome)
    Sets the biome at the specified coordinates.
    @NotNull BlockState
    block(int x, int y, int z)
    Gets a block from his coordinates.
    void
    block(int x, int y, int z, @NotNull BlockState block)
    Sets the block at the specified coordinates.
    int
    x()
    Gets the x chunk coordinate.
    int
    z()
    Gets the z chunk coordinate.
  • Field Details

  • Method Details

    • x

      int x()
      Gets the x chunk coordinate.
      Returns:
      the x coordinate of the chunk
      Since:
      1.0.0
    • z

      int z()
      Gets the z chunk coordinate.
      Returns:
      the z coordinate of the chunk
      Since:
      1.0.0
    • block

      void block(int x, int y, int z, @NotNull @NotNull BlockState block)
      Sets the block at the specified coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      block - the block to set
      Since:
      1.0.0
    • block

      @NotNull @NotNull BlockState block(int x, int y, int z)
      Gets a block from his coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      Returns:
      the block at the specified coordinates.
      Since:
      1.0.0
    • biome

      void biome(int x, int y, int z, @NotNull @NotNull Biome biome)
      Sets the biome at the specified coordinates.
      Parameters:
      x - the x coordinate
      y - the y coordinate
      z - the z coordinate
      biome - the block to set
      Since:
      1.0.0