ItemModelSelectorScope

Properties

Link copied to clipboard

The default model for this item under namespace:item/name or a new layered model using the texture under namespace:item/name.

Link copied to clipboard
val id: ResourceLocation

The ID of the item.

Link copied to clipboard

Functions

Link copied to clipboard
fun createGuiModel(background: Boolean, stretched: Boolean, vararg layers: String): ModelBuilder
fun createGuiModel(background: Boolean, stretched: Boolean, vararg layers: ResourcePath): ModelBuilder

Creates a new GUI model using the given layers as texture

Link copied to clipboard

Creates a new layered model using the given layers as the textures.

Creates a new layered model using the given layers as raw paths to the textures.

Link copied to clipboard

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