public static enum NPacketPlayInBlockDig.DigAction extends Enum<NPacketPlayInBlockDig.DigAction>
| Enum Constant and Description | 
|---|
CANCEL_DIGGING  | 
DROP_ITEM
Drop one item 
 | 
DROP_ITEM_STACK
Drop the entire of the item stack 
 | 
FINISH_ACTION
The finished action can correspond to: 
- Shoot arrow - Finish eating - Use bucket - ...  | 
FINISHED_DIGGING  | 
START_DIGGING  | 
SWAP_ITEM
Action when item is swipped between two item 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static NPacketPlayInBlockDig.DigAction | 
getById(int id)  | 
int | 
getId()  | 
static NPacketPlayInBlockDig.DigAction | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static NPacketPlayInBlockDig.DigAction[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final NPacketPlayInBlockDig.DigAction START_DIGGING
public static final NPacketPlayInBlockDig.DigAction CANCEL_DIGGING
public static final NPacketPlayInBlockDig.DigAction FINISHED_DIGGING
public static final NPacketPlayInBlockDig.DigAction DROP_ITEM_STACK
public static final NPacketPlayInBlockDig.DigAction DROP_ITEM
public static final NPacketPlayInBlockDig.DigAction FINISH_ACTION
public static final NPacketPlayInBlockDig.DigAction SWAP_ITEM
public static NPacketPlayInBlockDig.DigAction[] values()
for (NPacketPlayInBlockDig.DigAction c : NPacketPlayInBlockDig.DigAction.values()) System.out.println(c);
public static NPacketPlayInBlockDig.DigAction 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 nullpublic int getId()
public static NPacketPlayInBlockDig.DigAction getById(int id)