@FunctionalInterface
public interface ILuaTask
ILuaContext.executeMainThreadTask(ILuaTask)
or
ILuaContext.issueMainThreadTask(ILuaTask)
. This will be run on the main thread, at the beginning of the
next tick.Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
execute()
Execute this task.
|
java.lang.Object[] execute() throws LuaException
task_completed
event. These will be returned by
ILuaContext.executeMainThreadTask(ILuaTask)
.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.