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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerListbooleanGets if this chunk was newly created or not.Methods inherited from class org.bukkit.event.world.ChunkEvent
getChunkMethods inherited from class org.bukkit.event.world.WorldEvent
getWorldMethods inherited from class org.bukkit.event.Event
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
BlockPopulatorinstead.- Returns:
- true if the chunk is new, otherwise false
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-