getType

public abstract Material getType(int x, int y, int z)

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

Getting blocks outside the chunk's bounds returns air.

Return

the type of the block or Material.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