BlockGrid

interface BlockGrid

The blocks PlayerMotion moves through, looked up by coordinates. Implementations decide what unknown blocks are.

Functions

Link copied to clipboard
abstract fun shape(x: Int, y: Int, z: Int): VoxelShape

The collision shape of the block, relative to its corner.

Link copied to clipboard
abstract fun state(x: Int, y: Int, z: Int): BlockState