Component: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
All functionality in Advanced Computers is implemented via components. Components are represented by Lua's Userdata (short: UD) type, which in our case are represented by Java objects which are provided by items/blocks. | All functionality in Advanced Computers is implemented via components. Components are represented by Lua's Userdata (short: UD) type, which in our case are represented by Java objects which are provided by items/blocks. | ||
Components are generally accessed by calling <code> | Components are generally accessed by calling <code>components:getFirst("yourComponentType")</code>, for more information see [[Computer]] and the wiki page of any other item/block that provides a component. | ||
{{Navbox content}} | {{Navbox content}} | ||
Revision as of 23:04, 1 August 2026
All functionality in Advanced Computers is implemented via components. Components are represented by Lua's Userdata (short: UD) type, which in our case are represented by Java objects which are provided by items/blocks.
Components are generally accessed by calling components:getFirst("yourComponentType"), for more information see Computer and the wiki page of any other item/block that provides a component.