public class PlayerEnterWorldpartEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerEnterWorldpartEvent(Player player,
Vector2i newWorldpart,
Vector2i oldWorldpart) |
| Modifier and Type | Method and Description |
|---|---|
Vector2i |
getNewWorldpartCoordinates()
Gets the coordinates of the new worldpart.
|
Vector2i |
getOldWorldpartCoordinates()
Gets the coordinates of the old, previous worldpart.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Vector2i getNewWorldpartCoordinates()
Vector2i, the z
coordinate will be stored in the y value.public Vector2i getOldWorldpartCoordinates()
Vector2i, the z
coordinate will be stored in the y value.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.