public class PlayerToggleActionEvent extends PlayerEvent implements CancellableEvent
Modifier and Type | Class and Description |
---|---|
static class |
PlayerToggleActionEvent.ToggleAction |
Constructor and Description |
---|
PlayerToggleActionEvent(Player p,
PlayerToggleActionEvent.ToggleAction action,
boolean cancel) |
Modifier and Type | Method and Description |
---|---|
PlayerToggleActionEvent.ToggleAction |
getAction() |
boolean |
isCancelled() |
void |
setCancelled(boolean b) |
getPlayer, hasPlayer
public PlayerToggleActionEvent(Player p, PlayerToggleActionEvent.ToggleAction action, boolean cancel)
public PlayerToggleActionEvent.ToggleAction getAction()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean b)
setCancelled
in interface CancellableEvent