ItemModelSelectorScope

Properties

Link copied to clipboard
open override val defaultModel: ModelBuilder

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: Key

The ID of the item.

Link copied to clipboard

Functions

Link copied to clipboard
fun createGuiModel(background: Boolean, stretched: Boolean, vararg layers: String, display: Model.Display? = null): ModelBuilder
fun createGuiModel(background: Boolean, stretched: Boolean, vararg layers: ResourcePath<ResourceType.Model>, display: Model.Display? = null): 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
open override fun getModel(path: String): ModelBuilder

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