public enum PlayerAction extends Enum<PlayerAction>
| Enum Constant and Description |
|---|
CANCEL_DIGGING |
DROP_ITEM |
DROP_ITEM_STACK |
FINISH_DIGGING |
RELEASE_USE_ITEM |
START_DIGGING |
SWAP_HANDS |
| Modifier and Type | Method and Description |
|---|---|
static PlayerAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerAction START_DIGGING
public static final PlayerAction CANCEL_DIGGING
public static final PlayerAction FINISH_DIGGING
public static final PlayerAction DROP_ITEM_STACK
public static final PlayerAction DROP_ITEM
public static final PlayerAction RELEASE_USE_ITEM
public static final PlayerAction SWAP_HANDS
public static PlayerAction[] values()
for (PlayerAction c : PlayerAction.values()) System.out.println(c);
public static PlayerAction 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 © 2020. All rights reserved.