public enum ItemUseType extends Enum<ItemUseType>
| Enum Constant and Description |
|---|
ATTACK |
CONSUME |
DYED |
EAT |
EQUIP_ARMOR |
FILL_BOTTLE |
FILL_BUCKET |
INTERACT |
PLACE |
POUR_BUCKET |
RETRIEVED |
SHOOT |
THROW |
TRADED |
UNKNOWN |
USE_TOOL |
| Modifier and Type | Method and Description |
|---|---|
static ItemUseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ItemUseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemUseType UNKNOWN
public static final ItemUseType EQUIP_ARMOR
public static final ItemUseType EAT
public static final ItemUseType ATTACK
public static final ItemUseType CONSUME
public static final ItemUseType THROW
public static final ItemUseType SHOOT
public static final ItemUseType PLACE
public static final ItemUseType FILL_BOTTLE
public static final ItemUseType FILL_BUCKET
public static final ItemUseType POUR_BUCKET
public static final ItemUseType USE_TOOL
public static final ItemUseType INTERACT
public static final ItemUseType RETRIEVED
public static final ItemUseType DYED
public static final ItemUseType TRADED
public static ItemUseType[] values()
for (ItemUseType c : ItemUseType.values()) System.out.println(c);
public static ItemUseType 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–2022 NukkitX. All rights reserved.