public abstract class PlayerWorldEditEvent extends PlayerEvent implements Cancellable
| Modifier | Constructor and Description |
|---|---|
protected |
PlayerWorldEditEvent(Player player,
int cx,
int cy,
int cz,
int bx,
int by,
int bz) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBlockPositionX()
Gets the x block position in the chunk.
|
int |
getBlockPositionY()
Gets the y block position in the chunk.
|
int |
getBlockPositionZ()
Gets the z block position in the chunk.
|
int |
getChunkPositionX()
Gets the x offset of the chunk.
|
int |
getChunkPositionY()
Gets the y offset of the chunk.
|
int |
getChunkPositionZ()
Gets the z offset of the chunk.
|
int |
getGlobalBlockPositionX() |
int |
getGlobalBlockPositionY() |
int |
getGlobalBlockPositionZ() |
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerprotected PlayerWorldEditEvent(Player player, int cx, int cy, int cz, int bx, int by, int bz)
public int getChunkPositionX()
public int getChunkPositionY()
public int getChunkPositionZ()
public int getBlockPositionX()
public int getBlockPositionY()
public int getBlockPositionZ()
public int getGlobalBlockPositionX()
public int getGlobalBlockPositionY()
public int getGlobalBlockPositionZ()
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.