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>computerUD:getFirst("yourComponentType")</code>, for more information see [[ | Components are generally accessed by calling <code>computerUD: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 21:40, 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 computerUD:getFirst("yourComponentType"), for more information see Computer and the wiki page of any other item/block that provides a component.