Package org.bukkit.event.world
Class ChunkLoadEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.world.WorldEvent
org.bukkit.event.world.ChunkEvent
org.bukkit.event.world.ChunkLoadEvent
Called when a chunk is loaded
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.world.ChunkEvent
chunk
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
boolean
Gets if this chunk was newly created or not.Methods inherited from class org.bukkit.event.world.ChunkEvent
getChunk
Methods inherited from class org.bukkit.event.world.WorldEvent
getWorld
Methods inherited from class org.bukkit.event.Event
asynchronous, callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ChunkLoadEvent
-
-
Method Details
-
isNewChunk
public boolean isNewChunk()Gets if this chunk was newly created or not.Note: Do not use this to generated blocks in a newly generated chunk. Use a
BlockPopulator
instead.- Returns:
- true if the chunk is new, otherwise false
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-