public class PlayerToggleSprintEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerToggleSprintEvent(Player player,
boolean isSprinting) |
| Modifier and Type | Method and Description |
|---|---|
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
boolean |
isSprinting() |
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic PlayerToggleSprintEvent(Player player, boolean isSprinting)
public boolean isSprinting()
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–2019 NukkitX. All rights reserved.