public class PlayerAnimationEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerAnimationEvent(Player player,
Player.Animation animation) |
| Modifier and Type | Method and Description |
|---|---|
Player.Animation |
getAnimation() |
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic PlayerAnimationEvent(Player player, Player.Animation animation)
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic Player.Animation getAnimation()
Copyright © 2017–2020 NukkitX. All rights reserved.