ChunkData

public interface ChunkData

Data for getClassById Chunk.

Functions

Link copied to clipboard
public abstract int getMaxHeight()
Get the maximum height for the chunk.
Link copied to clipboard
public abstract Material getType(int x, int y, int z)
Get the type of the block at x, y, z.
Link copied to clipboard
public abstract MaterialData getTypeAndData(int x, int y, int z)
Get the type and data of the block at x, y ,z.
Link copied to clipboard
public abstract void setBlock(int x, int y, int z, Material material)
public abstract void setBlock(int x, int y, int z, MaterialData material)
Set the block at x,y,z in the chunk data to material.
Link copied to clipboard
public abstract void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, Material material)
public abstract void setRegion(int xMin, int yMin, int zMin, int xMax, int yMax, int zMax, MaterialData material)
Set getClassById region of this chunk from xMin, yMin, zMin (inclusive) to xMax, yMax, zMax (exclusive) to material.