ItemMetaPayload

@Serializable
data class ItemMetaPayload(val name: String? = null, val lore: List<String>? = null, val isUnbreakable: Boolean = false, val damage: Int = 0, val customModelData: Int? = null, val enchantments: Map<Enchantment, Int> = emptyMap(), val flags: Set<ItemFlag> = emptySet())(source)

Payload to configure item's ItemMeta.

See also

Constructors

Link copied to clipboard
constructor(name: String? = null, lore: List<String>? = null, isUnbreakable: Boolean = false, damage: Int = 0, customModelData: Int? = null, enchantments: Map<Enchantment, Int> = emptyMap(), flags: Set<ItemFlag> = emptySet())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val customModelData: Int? = null

A value used to override item model.

Link copied to clipboard
val damage: Int = 0

Damage to item durability. Affects only items that have durability (like weapons or tools).

Link copied to clipboard

Item's enchantments. See Enchantment.

Link copied to clipboard

Item flags used to hide information about item from lore. See ItemFlag.

Link copied to clipboard
@SerialName(value = "unbreakable")
val isUnbreakable: Boolean = false

Is item unbreakable. Affects only items that have durability (like weapons or tools).

Link copied to clipboard
val lore: List<String>? = null

Item lore. You can specify colors using symbol &.

Link copied to clipboard
val name: String? = null

Item name. You can specify colors using symbol &.