Inventory

Inventory

class

Multi slot inventory

Functions

Inventory:remove_empty_slots()

Drop every empty slot from this inventory

Inventory:resize(size)

Set the number of slots; slots past the new number are dropped with what they hold

size integer
Standard members (4)

These members are available on all classes of this kind.

Inventory.cast(object) Trying to cast Object into Inventory
Inventory.get_class() Return Inventory class object
Inventory.new(parent, name) Creates a new Inventory instance
Inventory.new_simple() Creates a new Inventory instance
Inherited from InventoryAccess (7)
Inherited from InventoryReader (3)
Inherited from Instance (1)
Inherited from Object (3)

Subclasses

Used by