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.

@FunctionalInterface public interface LuaTask
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

    Modifier and Type
    Method
    Description
    Execute this task.
  • Method Details

    • execute

      @Nullable Object[] execute() throws LuaException
      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.