CustomItemIdentifier

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.

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

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): Int
component2
Link copied to clipboard
operator fun component2(): Material
copy
Link copied to clipboard
fun copy(customModelData: Int, placeHolderMaterial: Material): CustomItemIdentifier
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

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