stateBacked

fun stateBacked(category: BackingStateCategory, vararg categories: BackingStateCategory, modelSelector: BlockModelSelector = DEFAULT_BLOCK_MODEL_SELECTOR)

Configures the backing state types of this block model via the given (category, categories), then selects the corresponding block models via the given modelSelector.

State-backed custom block models are more performant than entity-backed models, but have some limitations. There is also only a certain amount of total block states available that can be used for custom block models.

If no more backing states are available at runtime, the entity-backed display mode will be used instead.

Exclusive with entityBacked and modelLess.


fun stateBacked(priority: Int, category: BackingStateCategory, vararg categories: BackingStateCategory, modelSelector: BlockModelSelector = DEFAULT_BLOCK_MODEL_SELECTOR)

Configures the backing state types of this block model via the given (category, categories), then selects the corresponding block models via the given modelSelector.

State-backed custom block models are more performant than entity-backed models, but have some limitations. There is also only a certain amount of total block states available that can be used for custom block models.

If no more backing states are available at runtime, the entity-backed display mode will be used instead.

The priority value determines the order in which backing states are distributed to registered blocks, where blocks with a higher priority value will be assigned a backing state first. As a general guideline, the priority should be an estimation of how many blocks of this type will be in a chunk.

Exclusive with entityBacked and modelLess.