item

Contains information about an item stack

Fields

All fields contained in this type

fielddescription
nameThe item name (locale)
display_nameThe display name of the item
max_stack_sizeThe maximum stack size (usually 64)
stack_sizeThe current stack size
max_damageThe max item damage before it breaks
damageThe current item damage
solidReturns whether the block is solid if the item is a block. Will always be false otherwise
enchantmentsThe enchantments applied on the item
potionsThe potion effects applied on the item

Methods

All methods contained in this type

toString()

This method does not have any parameters