The component runtime API lists visible components, inspects methods, and invokes callbacks by address.
- Repository:
opencomputers - Type: core runtime API
OpenComputers/src\main\scala\li\cil\oc\server\machine\luac\ComponentAPI.scala
local component = require("component")
for address, name in component.list() do
print(address, name)
end- Description: Return visible components, optionally filtered by type.
- Description: Return the component type for the given address.
- Description: Return the host slot that contains the component.
- Description: Return callback metadata for a component.
- Description: Invoke a callback on a remote component.
- Description: Return the source documentation string for a callback.
computercomponentosunicode