Jump to content

Component: Difference between revisions

From Advanced Computers Wiki
Created page with "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>computer:getFirst("yourComponentType")</code>, for more information see {{Component:Computer}}."
 
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>computer:getFirst("yourComponentType")</code>, for more information see {{Component:Computer}}.
Components are generally accessed by calling <code>computerUD:getFirst("yourComponentType")</code>, for more information see {{Component:Computer}}.

Revision as of 16:57, 31 July 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 Template:Component:Computer.