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
-
public class ChunkLoadEvent extends ChunkEvent
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 Constructor Description ChunkLoadEvent(@NotNull Chunk chunk, boolean newChunk)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull HandlerList
getHandlerList()
@NotNull HandlerList
getHandlers()
boolean
isNewChunk()
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
getEventName, isAsynchronous
-
-
-
-
Constructor Detail
-
ChunkLoadEvent
public ChunkLoadEvent(@NotNull @NotNull Chunk chunk, boolean newChunk)
-
-
Method Detail
-
isNewChunk
public boolean isNewChunk()
Gets if this chunk was newly created or not.Note that if this chunk is new, it will not be populated at this time.
- Returns:
- true if the chunk is new, otherwise false
-
getHandlers
@NotNull public @NotNull HandlerList getHandlers()
- Specified by:
getHandlers
in classEvent
-
getHandlerList
@NotNull public static @NotNull HandlerList getHandlerList()
-
-