public class PlayerChangePositionEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerChangePositionEvent(Player player,
Vector3f position,
Quaternion rotation) |
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getPosition()
Gets the new position of the player.
|
Quaternion |
getRotation() |
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
void |
setPosition(float x,
float y,
float z) |
void |
setPosition(Vector3f position) |
void |
setRotation(Quaternion quaternion) |
getPlayerpublic PlayerChangePositionEvent(Player player, Vector3f position, Quaternion rotation)
public void setPosition(Vector3f position)
public void setPosition(float x,
float y,
float z)
public Vector3f getPosition()
public void setRotation(Quaternion quaternion)
public Quaternion getRotation()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.