public class ChunkUnloadEvent extends ChunkEvent implements Cancellable
Event.Resultchunk| Constructor and Description |
|---|
ChunkUnloadEvent(Chunk chunk) |
ChunkUnloadEvent(Chunk chunk,
boolean save) |
| Modifier and Type | Method and 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.
|
getChunkgetWorldcallEvent, getEventName, isAsynchronouspublic ChunkUnloadEvent(@NotNull
Chunk chunk)
public ChunkUnloadEvent(@NotNull
Chunk chunk,
boolean save)
public boolean isSaveChunk()
public void setSaveChunk(boolean saveChunk)
saveChunk - chunk save statuspublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.