3.7 KiB
3.7 KiB
title
title |
---|
CustomItemIdentifier - |
//KSpigot/net.axay.kspigot.items/CustomItemIdentifier
CustomItemIdentifier
[jvm]
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
Name | Summary |
---|---|
CustomItemIdentifier | [jvm] fun CustomItemIdentifier(itemStack: ItemStack) |
CustomItemIdentifier | [jvm] fun CustomItemIdentifier(customModelData: Int, placeHolderMaterial: Material) |
Functions
Name | Summary |
---|---|
component1 | [jvm] Content operator fun component1(): Int |
component2 | [jvm] Content operator fun component2(): Material |
copy | [jvm] Content fun copy(customModelData: Int, placeHolderMaterial: Material): CustomItemIdentifier |
equals | [jvm] Content open operator override fun equals(other: Any?): Boolean |
hashCode | [jvm] Content open override fun hashCode(): Int |
toString | [jvm] Content open override fun toString(): String |
Properties
Name | Summary |
---|---|
customModelData | [jvm] val customModelData: Int |
itemStack | [jvm] val itemStack: ItemStack? |
placeHolderMaterial | [jvm] val placeHolderMaterial: Material |