public enum TurtleAction extends java.lang.Enum<TurtleAction>
turtle
API.TurtleActionEvent
Enum Constant and Description |
---|
ATTACK
A turtle attempts to attack an entity.
|
DIG
A turtle attempts to dig a block.
|
DROP
Drop an item into an inventory/the world.
|
EQUIP
Equip or unequip an item.
|
INSPECT
Inspect a block in world
|
INSPECT_ITEM
Gather metdata about an item in the turtle's inventory.
|
MOVE
A turtle moves to a new position.
|
PLACE
A turtle attempts to place a block or item in the world.
|
REFUEL
Refuel the turtle's fuel levels.
|
SUCK
Suck an item from an inventory or the world.
|
TURN
A turtle turns in a specific direction.
|
Modifier and Type | Method and Description |
---|---|
static TurtleAction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TurtleAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleAction MOVE
TurtleBlockEvent.Move
public static final TurtleAction TURN
public static final TurtleAction DIG
TurtleBlockEvent.Dig
public static final TurtleAction PLACE
TurtleBlockEvent.Place
public static final TurtleAction ATTACK
TurtleActionEvent
public static final TurtleAction DROP
TurtleInventoryEvent.Drop
public static final TurtleAction SUCK
TurtleInventoryEvent.Suck
public static final TurtleAction REFUEL
public static final TurtleAction EQUIP
public static final TurtleAction INSPECT
TurtleBlockEvent.Inspect
public static final TurtleAction INSPECT_ITEM
public static TurtleAction[] values()
for (TurtleAction c : TurtleAction.values()) System.out.println(c);
public static TurtleAction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null