ItemGroup
classRecipe ingredient that any one of its member items satisfies, one for one
- load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.
Fields
| Name | Type | Description | |
|---|---|---|---|
| members | StaticItem[] | Items that satisfy the group, in the order a craft takes them | |
Functions
Standard members (5)
Every class of this kind carries these.
| ItemGroup.cast(object) | Trying to cast Object into ItemGroup |
| ItemGroup.get_class() | Return ItemGroup class object |
| ItemGroup.find(name) | Looks ItemGroup up in db, nil when there is none |
| ItemGroup.get(name) | Takes ItemGroup from db, reports a miss to the log |
| ItemGroup.reg(name) load-only | Register a new ItemGroup static object |
Inherited from StaticItem (16)
- image Item image in UI
- image_path Icon path relative to the owning mod folder
- stack_size Size of item stack
- tier Item unlock tier
- type read-only What the item is: "solid", "fluid" or "abstract"
- unit_mul multiplier for UI
- mesh Mesh for item rendering in world
- block Buildable object pointer for this item
- custom_data Is item instance contains CustomData
- logic Class for item while in hand
- lua Lua prototype table
- tags Space separated search tags
- category In-game database category
- equipment_slot Equipment slot this item fits (Jetpack, Light)
- label Localized item name
- description_parts Localized description paragraphs
Inherited from Prototype (2)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object