item
Contains information about an item stack
Fields
All fields contained in this type
| field | description |
|---|---|
| name | The item name (locale) |
| display_name | The display name of the item |
| max_stack_size | The maximum stack size (usually 64) |
| stack_size | The current stack size |
| max_damage | The max item damage before it breaks |
| damage | The current item damage |
| solid | Returns whether the block is solid if the item is a block. Will always be false otherwise |
| enchantments | The enchantments applied on the item |
| potions | The potion effects applied on the item |
Methods
All methods contained in this type
toString()
This method does not have any parameters