public static enum PlayerToggleActionEvent.ToggleAction extends Enum<PlayerToggleActionEvent.ToggleAction>
Modifier and Type | Method and Description |
---|---|
void |
cancel(Player p) |
BiConsumer<Player,Boolean> |
getCanceller() |
static PlayerToggleActionEvent.ToggleAction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PlayerToggleActionEvent.ToggleAction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlayerToggleActionEvent.ToggleAction SNEAK
public static final PlayerToggleActionEvent.ToggleAction SPRINT
public static PlayerToggleActionEvent.ToggleAction[] values()
for (PlayerToggleActionEvent.ToggleAction c : PlayerToggleActionEvent.ToggleAction.values()) System.out.println(c);
public static PlayerToggleActionEvent.ToggleAction 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 BiConsumer<Player,Boolean> getCanceller()
public void cancel(Player p)