RecipeInventory
classInventory that mirrors the slots of a recipe
Fields
| Name | Type | Description |
|---|---|---|
| recipe | Recipe |
Functions
RecipeInventory:add(item, count)
Append a recipe slot holding item with count
| item | StaticItem | |
| count | integer |
Standard members (4)
Generated for every class of this kind by the game's codegen, not written for RecipeInventory.
| RecipeInventory.cast(object) | Trying to cast Object into RecipeInventory |
| RecipeInventory.get_class() | Return RecipeInventory class object |
| RecipeInventory.new(parent, name) | Creates a new RecipeInventory instance |
| RecipeInventory.new_simple() | Creates a new RecipeInventory instance |
Inherited from Inventory (1)
- Inventory:remove_empty_slots() Drop every empty slot from this inventory
Inherited from InventoryAccess (3)
- zero_slots
- draggable Whether inventory can be dragged in UI (default: true)
- InventoryAccess:sub(item, count) Remove item with count from InventoryAccess
Inherited from InventoryReader (3)
- size Number of slots in this InventoryReader
- InventoryReader:get(index) Get ItemData with index from InventoryReader
- InventoryReader:find(item) Looking for index of StaticItem in InventoryReader
Inherited from Instance (1)
- Instance:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (3)
- name Object name
- Object.find(name) Find an already loaded object by name
- Object:get_class() Class of this object
Used by
- Recipe.input field
- Recipe.output field