public class PlayerMoveEvent extends PlayerEvent implements CancellableEvent
Constructor and Description |
---|
PlayerMoveEvent(Player p,
Location from,
Location to) |
Modifier and Type | Method and Description |
---|---|
Location |
getFrom() |
Location |
getTo() |
boolean |
hasToSet() |
boolean |
isCancelled() |
boolean |
isMoveLook()
Know if the current move event concern a movement of look (yaw/pitch)
|
boolean |
isMovePosition()
Know if the current move event concern a physical movement (x/y/z)
|
void |
setCancelled(boolean cancel) |
void |
setTo(Location to) |
getPlayer, hasPlayer
public Location getTo()
public void setTo(Location to)
public Location getFrom()
public boolean isCancelled()
isCancelled
in interface CancellableEvent
public void setCancelled(boolean cancel)
setCancelled
in interface CancellableEvent
public boolean hasToSet()
public boolean isMoveLook()
public boolean isMovePosition()