public class ChunkUnloadEvent extends ChunkEvent
Event.Result
chunk
Constructor and Description |
---|
ChunkUnloadEvent(Chunk chunk) |
ChunkUnloadEvent(Chunk chunk,
boolean save) |
Modifier and Type | Method and Description |
---|---|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
boolean |
isSaveChunk()
Return whether this chunk will be saved to disk.
|
void |
setSaveChunk(boolean saveChunk)
Set whether this chunk will be saved to disk.
|
getChunk
getWorld
callEvent, getEventName, isAsynchronous
public ChunkUnloadEvent(@NotNull Chunk chunk)
public ChunkUnloadEvent(@NotNull Chunk chunk, boolean save)
public boolean isSaveChunk()
public void setSaveChunk(boolean saveChunk)
saveChunk
- chunk save status@NotNull public HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static HandlerList getHandlerList()
Copyright © 2022. All rights reserved.