setBlock

public abstract void setBlock(int x, int y, int z, Material material)

Set the block at x,y,z in the chunk data to material.

Note: setting blocks outside the chunk's bounds does nothing.

Parameters

x

the x location in the chunk from 0-15 inclusive

y

the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)

z

the z location in the chunk from 0-15 inclusive

material

the type to set the block to


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.

Setting blocks outside the chunk's bounds does nothing.

Parameters

x

the x location in the chunk from 0-15 inclusive

y

the y location in the chunk from 0 (inclusive) - maxHeight (exclusive)

z

the z location in the chunk from 0-15 inclusive

material

the type to set the block to