ItemModelLayoutBuilder

Functions

Link copied to clipboard
fun itemType(material: Material)

Configures the underlying item type of this item model, which is responsible for client-side behavior.

Link copied to clipboard
fun selectModel(name: String = "default", modelSelector: ItemModelSelector)

Configures the model for the specified name.

Link copied to clipboard
fun selectModels(range: IntRange, setDefault: Boolean = false, modelSelector: NumberedItemModelSelector)

Configures the models for each number in the specified range by invoking the given modelSelector.

fun selectModels(range: IntRange, format: String, setDefault: Boolean = false)

Configures the models for each number in the specified range by invoking the given format with the number as the argument.