public class PlayerEnterChunkEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerEnterChunkEvent(Player player,
Vector3i newChunk,
Vector3i oldChunk) |
| Modifier and Type | Method and Description |
|---|---|
Vector3i |
getNewChunkCoordinates()
Gets the coordinates of the new chunk.
|
Vector3i |
getOldChunkCoordinates()
Gets the coordinates of the old, previous chunk.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Vector3i getNewChunkCoordinates()
public Vector3i getOldChunkCoordinates()
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.