--- title: net.axay.kspigot.items - --- //[KSpigot](../index.md)/[net.axay.kspigot.items](index.md) # Package net.axay.kspigot.items ## Types | Name| Summary| |---|---| | [CustomItemIdentifier](-custom-item-identifier/index.md)| [jvm]
Brief description




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.




Content
data class [CustomItemIdentifier](-custom-item-identifier/index.md)(**customModelData**: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html), **placeHolderMaterial**: Material)


| [ItemMetaLoreBuilder](-item-meta-lore-builder/index.md)| [jvm]
Brief description


Lore builder which uses an [ArrayList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-array-list/index.html) under the hood. It exists to provide overloaded operator functions.


Content
class [ItemMetaLoreBuilder](-item-meta-lore-builder/index.md)


## Functions | Name| Summary| |---|---| | [addLore](add-lore.md)| [jvm]
Brief description


Adds new lines to the lore (description) of the item.


Content
inline fun ItemMeta.[addLore](add-lore.md)(builder: [ItemMetaLoreBuilder](-item-meta-lore-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


| [flag](flag.md)| [jvm]
Brief description


Add a new ItemFlag to the item flags.


Content
fun ItemMeta.[flag](flag.md)(itemFlag: ItemFlag)


| [flags](flags.md)| [jvm]
Brief description


Add several ItemFlags to the item flags.


Content
fun ItemMeta.[flags](flags.md)(vararg itemFlag: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html))


| [itemMeta](item-meta.md)| [jvm]
Brief description


Creates new a ItemMeta instance of the given material and opens a builder for it.


Content
inline fun <[T](item-meta.md) : ItemMeta> [itemMeta](item-meta.md)(material: Material, builder: [T](item-meta.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): [T](item-meta.md)?


[jvm]
Content
@[JvmName](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-name/index.html)(name = "simpleItemMeta")

inline fun [itemMeta](item-meta.md)(material: Material, builder: ItemMeta.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): ItemMeta?


| [itemStack](item-stack.md)| [jvm]
Brief description


Creates a new ItemStack and opens a builder for it.


Content
inline fun [itemStack](item-stack.md)(material: Material, builder: ItemStack.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)): ItemStack


| [meta](meta.md)| [jvm]
Brief description


Opens a builder with the current meta.


Content
inline fun <[T](meta.md) : ItemMeta> ItemStack.[meta](meta.md)(builder: [T](meta.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


[jvm]
Content
@[JvmName](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-name/index.html)(name = "simpleMeta")

inline fun ItemStack.[meta](meta.md)(builder: ItemMeta.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


| [removeFlag](remove-flag.md)| [jvm]
Brief description


Removes a ItemFlag from the item flags.


Content
fun ItemMeta.[removeFlag](remove-flag.md)(itemFlag: ItemFlag)


| [removeFlags](remove-flags.md)| [jvm]
Brief description


Removes several ItemFlags from the item flags.


Content
fun ItemMeta.[removeFlags](remove-flags.md)(vararg itemFlag: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html))


| [setLore](set-lore.md)| [jvm]
Brief description


Sets the lore (description) of the item.


Content
inline fun ItemMeta.[setLore](set-lore.md)(builder: [ItemMetaLoreBuilder](-item-meta-lore-builder/index.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


| [setMeta](set-meta.md)| [jvm]
Brief description


Resets the meta and opens a builder to create the new one.


Content
inline fun <[T](set-meta.md) : ItemMeta> ItemStack.[setMeta](set-meta.md)(builder: [T](set-meta.md).() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


[jvm]
Content
@[JvmName](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-name/index.html)(name = "simpleSetMeta")

inline fun ItemStack.[setMeta](set-meta.md)(builder: ItemMeta.() -> [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html))


## Properties | Name| Summary| |---|---| | [customModel](index.md#net.axay.kspigot.items//customModel/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/)| [jvm]

Provides safe access to the items' customModelData.

var ItemMeta.[customModel](index.md#net.axay.kspigot.items//customModel/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)?
| [localName](index.md#net.axay.kspigot.items//localName/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/)| [jvm]

Provides more consistent access to the items' localizedName.

var ItemMeta.[localName](index.md#net.axay.kspigot.items//localName/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
| [name](index.md#net.axay.kspigot.items//name/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/)| [jvm]

Provides safe access to the items' displayName.

var ItemMeta.[name](index.md#net.axay.kspigot.items//name/org.bukkit.inventory.meta.ItemMeta#/PointingToDeclaration/): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)?