Cancellable
public class ChunkUnloadEvent extends ChunkEvent implements Cancellable
Event.Result
chunk
Constructor | Description |
---|---|
ChunkUnloadEvent(Chunk chunk) |
|
ChunkUnloadEvent(Chunk chunk,
boolean save) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
isCancelled() |
Gets the cancellation state of this event.
|
boolean |
isSaveChunk() |
Return whether this chunk will be saved to disk.
|
void |
setCancelled(boolean cancel) |
Sets the cancellation state of this event.
|
void |
setSaveChunk(boolean saveChunk) |
Set whether this chunk will be saved to disk.
|
getChunk
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorld
public ChunkUnloadEvent(Chunk chunk)
public ChunkUnloadEvent(Chunk chunk, boolean save)
public boolean isSaveChunk()
public void setSaveChunk(boolean saveChunk)
saveChunk
- chunk save statuspublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.