---
title: CustomItemIdentifier -
---
//[KSpigot](../../index.md)/[net.axay.kspigot.items](../index.md)/[CustomItemIdentifier](index.md)
# 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](index.md)(**customModelData**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **placeHolderMaterial**: Material)
## Constructors
| Name| Summary|
|---|---|
| [CustomItemIdentifier](-custom-item-identifier.md)| [jvm] fun [CustomItemIdentifier](-custom-item-identifier.md)(itemStack: ItemStack)
| [CustomItemIdentifier](-custom-item-identifier.md)| [jvm] fun [CustomItemIdentifier](-custom-item-identifier.md)(customModelData: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), placeHolderMaterial: Material)
## Functions
| Name| Summary|
|---|---|
| [component1](component1.md)| [jvm]
Content
operator fun [component1](component1.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [component2](component2.md)| [jvm]
Content
operator fun [component2](component2.md)(): Material
| [copy](copy.md)| [jvm]
Content
fun [copy](copy.md)(customModelData: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), placeHolderMaterial: Material): [CustomItemIdentifier](index.md)
| [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)| [jvm]
Content
open operator override fun [equals](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/equals/#kotlin.Any?/PointingToDeclaration/)(other: [Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?): [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)
| [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)| [jvm]
Content
open override fun [hashCode](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/hashCode/#/PointingToDeclaration/)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)| [jvm]
Content
open override fun [toString](../../net.axay.kspigot.utils/-registerable-command/index.md#kotlin/Any/toString/#/PointingToDeclaration/)(): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
## Properties
| Name| Summary|
|---|---|
| [customModelData](index.md#net.axay.kspigot.items/CustomItemIdentifier/customModelData/#/PointingToDeclaration/)| [jvm] val [customModelData](index.md#net.axay.kspigot.items/CustomItemIdentifier/customModelData/#/PointingToDeclaration/): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
| [itemStack](index.md#net.axay.kspigot.items/CustomItemIdentifier/itemStack/#/PointingToDeclaration/)| [jvm] val [itemStack](index.md#net.axay.kspigot.items/CustomItemIdentifier/itemStack/#/PointingToDeclaration/): ItemStack?
| [placeHolderMaterial](index.md#net.axay.kspigot.items/CustomItemIdentifier/placeHolderMaterial/#/PointingToDeclaration/)| [jvm] val [placeHolderMaterial](index.md#net.axay.kspigot.items/CustomItemIdentifier/placeHolderMaterial/#/PointingToDeclaration/): Material