getTypeAndData

public abstract MaterialData getTypeAndData(int x, int y, int z)

Get the type and data of the block at x, y ,z.

Getting blocks outside the chunk's bounds returns air.

Return

the type and data of the block or the MaterialData for air if x, y or z are outside the chunk's bounds

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