public enum AgentActionType extends java.lang.Enum<AgentActionType>
Enum members without a JSON example use the following format:
{
"result": true|false
}
| Enum Constant and Description |
|---|
ATTACK |
COLLECT |
DESTROY |
DETECT_OBSTACLE |
DETECT_REDSTONE |
DROP |
DROP_ALL |
INSPECT
JSON Data:
|
INSPECT_DATA
JSON Data:
|
INSPECT_ITEM_COUNT
JSON Data:
|
INSPECT_ITEM_DETAIL
Note: If the enchantment level is above 10, the i18n string should not be used.
|
INSPECT_ITEM_SPACE
JSON Data:
|
INTERACT |
MOVE
JSON Data:
|
NONE |
PLACE_BLOCK |
TILL |
TRANSFER_ITEM_TO |
TURN |
| Modifier and Type | Method and Description |
|---|---|
static AgentActionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AgentActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentActionType NONE
public static final AgentActionType ATTACK
public static final AgentActionType COLLECT
public static final AgentActionType DESTROY
public static final AgentActionType DETECT_REDSTONE
public static final AgentActionType DETECT_OBSTACLE
public static final AgentActionType DROP
public static final AgentActionType DROP_ALL
public static final AgentActionType INSPECT
{
"result": {
"block": {
"id": "dirt",
"namespace": "minecraft",
"aux": 0
}
}
}
public static final AgentActionType INSPECT_DATA
{
"result": {
"block": {
"aux": 0
}
}
}
public static final AgentActionType INSPECT_ITEM_COUNT
{
"result": {
"item": {
"count": 10
}
}
}
public static final AgentActionType INSPECT_ITEM_DETAIL
JSON Data:
{
"result": {
"item": {
"id": "dirt",
"namespace": "minecraft",
"aux": 0,
"maxStackSize": 64,
"stackSize": 1,
"freeStackSize": 63,
"enchantments: [
{
"name": "enchantment.knockback enchantment.level.1" | "enchantment.knockback 20",
"type": 1,
"level": 1
}
]
}
}
}
public static final AgentActionType INSPECT_ITEM_SPACE
{
"result": {
"item": {
"maxStackSize": 64,
"stackSize": 1,
"freeStackSize": 63 // (maxStackSize - stackSize)
}
}
}
public static final AgentActionType INTERACT
public static final AgentActionType MOVE
{
"status": {
"statusName": "moving" | "blocked | "reached"
}
}
public static final AgentActionType PLACE_BLOCK
public static final AgentActionType TILL
public static final AgentActionType TRANSFER_ITEM_TO
public static final AgentActionType TURN
public static AgentActionType[] values()
for (AgentActionType c : AgentActionType.values()) System.out.println(c);
public static AgentActionType 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