public class PlayerChunkRequestEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerChunkRequestEvent(Player player,
int chunkX,
int chunkZ) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChunkX() |
int |
getChunkZ() |
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public PlayerChunkRequestEvent(Player player, int chunkX, int chunkZ)
public Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic int getChunkX()
public int getChunkZ()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.