BlockContainer

interface BlockContainer

Something that contains blocks.

The default value that will be returned instead of null if no block is found is the block state representing air.

Inheritors

Functions

Link copied to clipboard
abstract fun getBlock(position: Vec3i): BlockState

Gets the block at the given position.

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

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