SingleSlotInventory

SingleSlotInventory

class

Inventory with exactly one slot

Fields

NameTypeDescription
capacity integer

Functions

SingleSlotInventory:set_simple_filter(item)

Accept only the given item in this slot

item StaticItem
Standard members (4)

These members are available on all classes of this kind.

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

Subclasses