getBlockEntity

abstract fun getBlockEntity(x: Int, y: Int, z: Int): BlockEntity?

Gets the block entity at the given x, y, and z coordinates, or returns null if there is no block entity at the given x, y, and z coordinates.

Return

the block entity at the coordinates, or null if not present

Parameters

x

the X coordinate

y

the Y coordinate

z

the Z coordinate


open fun getBlockEntity(position: Vec3i): BlockEntity?

Gets the block entity at the given position, or returns null if there is no block entity at the given position.

Return

the block entity at the position, or null if not present

Parameters

position

the position of the block entity