public class PlayerChangeBlockPositionEvent extends PlayerEvent implements Cancellable
PlayerChangePosition event (which is called very frequently!).| Constructor and Description |
|---|
PlayerChangeBlockPositionEvent(Player player,
Vector3i newBlockPosition,
Vector3i oldBlockPosition) |
| Modifier and Type | Method and Description |
|---|---|
Vector3i |
getNewBlockPosition()
Gets the new block position of the player.
|
Vector3i |
getOldBlockPosition()
Gets the old block position of the player.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Vector3i getNewBlockPosition()
public Vector3i getOldBlockPosition()
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.