StaticItem
classItem prototype
Fields
| Name | Type | Description |
|---|---|---|
| image | Texture | Item image in UI |
| image_path | string | Icon path relative to the owning mod folder |
| stack_size | integer | Size of item stack |
| tier | integer | Item unlock tier |
| unit_mul | number | multiplier for UI |
| mesh | StaticMesh | Mesh for item rendering in world |
| block | StaticBlock | Buildable object pointer for this item |
| custom_data | boolean | Is item instance contains CustomData |
| logic | Class | Class for item while in hand |
| lua | table? | Lua prototype table |
| tags | string | Space separated search tags |
| category | string | In-game database category |
| equipment_slot | string | Equipment slot this item fits (Jetpack, Light) |
| label | Loc | Localized item name |
| description_parts | Loc[] | Localized description paragraphs |
Standard members (5)
Generated for every class of this kind by the game's codegen, not written for StaticItem.
| StaticItem.cast(object) | Trying to cast Object into StaticItem |
| StaticItem.get_class() | Return StaticItem class object |
| StaticItem.find(name) | Looks StaticItem up in db, nil when there is none |
| StaticItem.get(name) | Takes StaticItem from db, reports a miss to the log |
| StaticItem.reg(name) | Register a new StaticItem static object |
Inherited from Prototype (2)
- name 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
Used by
- AbstractCrafter.select_recipe_by_output param
- Dimension.get_produced param
- ExtractionData.item field
- InventoryAccess.add param
- InventoryAccess.sub param
- InventoryReader.find param
- ItemData.item field
- ItemData.new param
- ItemData.new_zero param
- LogicExportOption.signal field
- LogicImportOption.signal field
- RecipeDictionary.used_in param
- RecipeInventory.add param
- ResourceInventory.item field
- SingleSlotInventory.set_simple_filter param
- SourceData.item field
- StaticItemPanel.items field
- StaticItemPanel.add_context param
- StaticObject.item field
- StaticQuest.add_context param
- StaticTip.add_context param