Package org.bukkit.event.world
Class ChunkUnloadEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
org.bukkit.event.world.ChunkEvent
org.bukkit.event.world.ChunkUnloadEvent
public class ChunkUnloadEvent extends ChunkEvent
Called when a chunk is unloaded
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkUnloadEvent(Chunk chunk)ChunkUnloadEvent(Chunk chunk, boolean save) -
Method Summary
Modifier and Type Method Description static HandlerListgetHandlerList()HandlerListgetHandlers()booleanisSaveChunk()Return whether this chunk will be saved to disk.voidsetSaveChunk(boolean saveChunk)Set whether this chunk will be saved to disk.
-
Constructor Details
-
Method Details
-
isSaveChunk
public boolean isSaveChunk()Return whether this chunk will be saved to disk.- Returns:
- chunk save status
-
setSaveChunk
public void setSaveChunk(boolean saveChunk)Set whether this chunk will be saved to disk.- Parameters:
saveChunk- chunk save status
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-