public class PlayerToggleGlideEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerToggleGlideEvent(Player player,
boolean isSneaking) |
| Modifier and Type | Method and Description |
|---|---|
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
boolean |
isGliding() |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public PlayerToggleGlideEvent(Player player, boolean isSneaking)
public boolean isGliding()
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2018 NukkitX. All rights reserved.