Dokumentation
inventory
typePaper
An inventory: a player's, a chest's or a custom menu.
Egenskaber 1
inventory.size: number
skrivebeskyttetPaper
Number of slots.
Metoder 7
Adds an item to the first free slot.
Removes items of a type.
inventory.get(slot)
Paper
The item in a slot, or none.
Puts an item in a slot (none empties it).
True if the inventory has at least that many of a type.
How many items of a type are in the inventory.
inventory.clear()
Paper
Empties the inventory.