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