Package dan200.computercraft.api.lua
Interface LuaTask
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A task which can be executed via
ILuaContext.issueMainThreadTask(LuaTask)
This will be run on the main
thread, at the beginning of the
next tick.- See Also:
-
Method Summary
-
Method Details
-
execute
Execute this task.- Returns:
- The arguments to add to the
task_completed
event. - Throws:
LuaException
- If you throw any exception from this function, a lua error will be raised with the same message as your exception. Use this to throw appropriate errors if the wrong arguments are supplied to your method.
-