Package cn.nukkit.network.protocol.types
Enum Class AgentActionType
- All Implemented Interfaces:
Serializable
,Comparable<AgentActionType>
,Constable
- Since:
- v503
Enum members without a JSON example use the following format:
{ "result": true|false }
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionJSON Data:JSON Data:JSON Data:Note: If the enchantment level is above 10, the i18n string should not be used.JSON Data:JSON Data: -
Method Summary
Modifier and TypeMethodDescriptionstatic AgentActionType
Returns the enum constant of this class with the specified name.static AgentActionType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
ATTACK
-
COLLECT
-
DESTROY
-
DETECT_REDSTONE
-
DETECT_OBSTACLE
-
DROP
-
DROP_ALL
-
INSPECT
JSON Data:{ "result": { "block": { "id": "dirt", "namespace": "minecraft", "aux": 0 } } }
-
INSPECT_DATA
JSON Data:{ "result": { "block": { "aux": 0 } } }
-
INSPECT_ITEM_COUNT
JSON Data:{ "result": { "item": { "count": 10 } } }
-
INSPECT_ITEM_DETAIL
Note: If the enchantment level is above 10, the i18n string should not be used.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 } ] } } }
-
INSPECT_ITEM_SPACE
JSON Data:{ "result": { "item": { "maxStackSize": 64, "stackSize": 1, "freeStackSize": 63 // (maxStackSize - stackSize) } } }
-
INTERACT
-
MOVE
JSON Data:{ "status": { "statusName": "moving" | "blocked | "reached" } }
-
PLACE_BLOCK
-
TILL
-
TRANSFER_ITEM_TO
-
TURN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-