public interface ILuaAPI extends ILuaObject
ILuaObject
which is stored as a global variable on computer startup.
Before implementing this interface, consider alternative methods of providing methods. It is generally preferred
to use peripherals to provide functionality to users.Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getNames()
Get the globals this API will be assigned to.
|
default void |
shutdown()
Called when the computer is turned off or unloaded.
|
default void |
startup()
Called when the computer is turned on.
|
default void |
update()
Called every time the computer is ticked.
|
callMethod, getMethodNames
java.lang.String[] getNames()
default void startup()
default void update()
default void shutdown()