CustomItemIdentifier

data class CustomItemIdentifier(customModelData: Int, placeHolderMaterial: Material)

This class defines a material in combination with a specific custom model data value.

It is useful if you work with custom items defined in resourcepacks, where you do not only need a material to define a specific item type, but the value of the custom model data aswell.

Constructors

CustomItemIdentifier
Link copied to clipboard
fun CustomItemIdentifier(itemStack: ItemStack)
CustomItemIdentifier
Link copied to clipboard
fun CustomItemIdentifier(customModelData: Int, placeHolderMaterial: Material)

Properties

customModelData
Link copied to clipboard
val customModelData: Int
itemStack
Link copied to clipboard
val itemStack: ItemStack?
placeHolderMaterial
Link copied to clipboard
val placeHolderMaterial: Material