Properties

Link copied to clipboard
open override val defaultModel: ModelBuilder

The default model for this block under namespace:block/name or a new model with parent minecraft:block/cube_all and "all": "namespace:block/name".

Link copied to clipboard
val id: Key

The ID of the block.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun getModel(path: String): ModelBuilder

Gets the model under the given path after or throws an exception if it does not exist.

Gets the model under the given path or throws an exception if it does not exist.

Link copied to clipboard

Gets the value of the given property of the current block state or null if the current block state does not have the given property.

Link copied to clipboard

Gets the value of the given property of the current block state or throws an exception if the current block state does not have the given property.

Link copied to clipboard

Checks whether the current block state has the given property.

Link copied to clipboard

Rotates the builder based on the built-in facing BlockStateProperties: DefaultBlockStateProperties.FACING (assuming that the model is facing BlockFace.NORTH), DefaultBlockStateProperties.AXIS (assuming that the model is aligned with the Axis.Y axis).