@FunctionalInterface
public interface ITurtleCommand
ITurtleAccess.executeCommand(ILuaContext, ITurtleCommand)
.Modifier and Type | Method and Description |
---|---|
TurtleCommandResult |
execute(ITurtleAccess turtle)
Will be called by the turtle on the main thread when it is time to execute the custom command.
|
TurtleCommandResult execute(ITurtleAccess turtle)
turtle
- Access to the turtle for whom the command was issued.ITurtleAccess.executeCommand(ILuaContext, ITurtleCommand)
,
TurtleCommandResult.success()
,
TurtleCommandResult.failure(String)
,
TurtleCommandResult