public class PlayerMoveEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerMoveEvent(Player player,
Location from,
Location to) |
| Modifier and Type | Method and Description |
|---|---|
Location |
getFrom() |
Player |
getPlayer()
Get the player in question.
|
Location |
getTo() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
void |
setTo(Location to) |
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic Location getFrom()
public Location getTo()
public void setTo(Location to)
public 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.