getBlock

abstract fun getBlock(x: Int, y: Int, z: Int): BlockState

Gets the block at the given x, y, and z coordinates.

Return

the block at the given coordinates

Parameters

x

the x coordinate

y

the y coordinate

z

the z coordinate


abstract fun getBlock(position: Vec3i): BlockState

Gets the block at the given position.

Return

the block at the given position

Parameters

position

the position