public enum ItemAction extends Enum<ItemAction>
| Enum Constant and Description |
|---|
ATTACK |
CONSUME |
COUNT |
DYED |
EAT |
EQUIP_ARMOR |
FILL_BOTTLE |
FILL_BUCKET |
INTERACT |
PLACE |
POUR_BUCKET |
RETRIEVE |
SHOOT |
THROW |
TRADED |
UNKNOWN |
USE_TOOL |
| Modifier and Type | Method and Description |
|---|---|
static ItemAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemAction UNKNOWN
public static final ItemAction EQUIP_ARMOR
public static final ItemAction EAT
public static final ItemAction ATTACK
public static final ItemAction CONSUME
public static final ItemAction THROW
public static final ItemAction SHOOT
public static final ItemAction PLACE
public static final ItemAction FILL_BOTTLE
public static final ItemAction FILL_BUCKET
public static final ItemAction POUR_BUCKET
public static final ItemAction USE_TOOL
public static final ItemAction INTERACT
public static final ItemAction RETRIEVE
public static final ItemAction DYED
public static final ItemAction TRADED
public static final ItemAction COUNT
public static ItemAction[] values()
for (ItemAction c : ItemAction.values()) System.out.println(c);
public static ItemAction valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2019 NukkitX. All rights reserved.