Interface Chunk
public interface Chunk
Represents a chunk of the world.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
CHUNK_SIZE_X
static final int CHUNK_SIZE_X- See Also:
-
CHUNK_SIZE_Z
static final int CHUNK_SIZE_Z- See Also:
-
CHUNK_SECTION_SIZE
static final int CHUNK_SECTION_SIZE- See Also:
-
-
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
Sets the block at the specified coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinateblock
- the block to set- Since:
- 1.0.0
-
block
Gets a block from his coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinate- Returns:
- the block at the specified coordinates.
- Since:
- 1.0.0
-
biome
Sets the biome at the specified coordinates.- Parameters:
x
- the x coordinatey
- the y coordinatez
- the z coordinatebiome
- the block to set- Since:
- 1.0.0
-