public static interface ChunkGenerator.ChunkData
Modifier and Type | Method | Description |
---|---|---|
@NotNull BlockData |
getBlockData(int x,
int y,
int z) |
Get the type and data of the block at x, y, z.
|
byte |
getData(int x,
int y,
int z) |
Deprecated.
Uses magic values
|
int |
getMaxHeight() |
Get the maximum height for the chunk.
|
@NotNull Material |
getType(int x,
int y,
int z) |
Get the type of the block at x, y, z.
|
@NotNull MaterialData |
getTypeAndData(int x,
int y,
int z) |
Get the type and data of the block at x, y, z.
|
void |
setBlock(int x,
int y,
int z,
@NotNull BlockData blockData) |
Set the block at x,y,z in the chunk data to material.
|
void |
setBlock(int x,
int y,
int z,
@NotNull Material material) |
Set the block at x,y,z in the chunk data to material.
|
void |
setBlock(int x,
int y,
int z,
@NotNull MaterialData material) |
Set the block at x,y,z in the chunk data to material.
|
void |
setRegion(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
@NotNull BlockData blockData) |
Set a region of this chunk from xMin, yMin, zMin (inclusive) to xMax,
yMax, zMax (exclusive) to material.
|
void |
setRegion(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
@NotNull Material material) |
Set a region of this chunk from xMin, yMin, zMin (inclusive)
to xMax, yMax, zMax (exclusive) to material.
|
void |
setRegion(int xMin,
int yMin,
int zMin,
int xMax,
int yMax,
int zMax,
@NotNull MaterialData material) |
Set a region of this chunk from xMin, yMin, zMin (inclusive)
to xMax, yMax, zMax (exclusive) to material.
|
int getMaxHeight()
void setBlock(int x, int y, int z, @NotNull @NotNull Material material)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusivematerial
- the type to set the block tovoid setBlock(int x, int y, int z, @NotNull @NotNull MaterialData material)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusivematerial
- the type to set the block tovoid setBlock(int x, int y, int z, @NotNull @NotNull BlockData blockData)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusiveblockData
- the type to set the block tovoid setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull Material material)
xMin
- minimum x location (inclusive) in the chunk to setyMin
- minimum y location (inclusive) in the chunk to setzMin
- minimum z location (inclusive) in the chunk to setxMax
- maximum x location (exclusive) in the chunk to setyMax
- maximum y location (exclusive) in the chunk to setzMax
- maximum z location (exclusive) in the chunk to setmaterial
- the type to set the blocks tovoid setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull MaterialData material)
xMin
- minimum x location (inclusive) in the chunk to setyMin
- minimum y location (inclusive) in the chunk to setzMin
- minimum z location (inclusive) in the chunk to setxMax
- maximum x location (exclusive) in the chunk to setyMax
- maximum y location (exclusive) in the chunk to setzMax
- maximum z location (exclusive) in the chunk to setmaterial
- the type to set the blocks tovoid setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, @NotNull @NotNull BlockData blockData)
xMin
- minimum x location (inclusive) in the chunk to setyMin
- minimum y location (inclusive) in the chunk to setzMin
- minimum z location (inclusive) in the chunk to setxMax
- maximum x location (exclusive) in the chunk to setyMax
- maximum y location (exclusive) in the chunk to setzMax
- maximum z location (exclusive) in the chunk to setblockData
- the type to set the blocks to@NotNull @NotNull Material getType(int x, int y, int z)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusive@NotNull @NotNull MaterialData getTypeAndData(int x, int y, int z)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusive@NotNull @NotNull BlockData getBlockData(int x, int y, int z)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusive@Deprecated byte getData(int x, int y, int z)
x
- the x location in the chunk from 0-15 inclusivey
- the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)z
- the z location in the chunk from 0-15 inclusiveCopyright © 2020. All rights reserved.