BlockModelLayoutBuilder

Functions

Link copied to clipboard
fun entityBacked(stateSelector: BlockStateSelector = DEFAULT_STATE_SELECTOR)

Configures the hitbox type of this entity-based block model.

Link copied to clipboard
fun modelLess(stateSelector: BlockStateSelector)

Configures this block to not use any custom models, but instead use the given stateSelector.

Link copied to clipboard
fun selectModel(modelSelector: BlockModelSelector)

Configures the models based on the block state.

@JvmName(name = "selectModelString")
fun <T : Any> selectModel(property: BlockStateProperty<T>, vararg models: Pair<T, String>)
@JvmName(name = "selectModelResourcePath")
fun <T : Any> selectModel(property: BlockStateProperty<T>, vararg models: Pair<T, ResourcePath>)
@JvmName(name = "selectModelString")
fun <T : Any> selectModel(property: BlockStateProperty<T>, models: Map<T, String>)
@JvmName(name = "selectModelResourcePath")
fun <T : Any> selectModel(property: BlockStateProperty<T>, models: Map<T, ResourcePath>)

Configures the models based on the given property.

Link copied to clipboard
fun stateBacked(priority: Int, category: BackingStateCategory, vararg other: BackingStateCategory)

Configures the backing state types of this block model.