ItemDesc

@ConfigSerializable
data class ItemDesc(val type: ItemType, val modelData: Int = 0, val damage: Int = 0, val isUnbreakable: Boolean = false)

Descriptor for an item stack.

Parameters

type

the base type of item.

modelData

the custom model data.

damage

the damage value of the item, if it can be damaged.

isUnbreakable

if the item has a visible damage bar and can be broken.

Constructors

Link copied to clipboard
constructor(type: ItemType, modelData: Int = 0, damage: Int = 0, isUnbreakable: Boolean = false)

Properties

Link copied to clipboard
val damage: Int = 0
Link copied to clipboard
val isUnbreakable: Boolean = false
Link copied to clipboard
val modelData: Int = 0
Link copied to clipboard
@Required
val type: ItemType