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
ConstructorDescriptionChunkLoadEvent
(@NotNull Chunk chunk, boolean newChunk) ChunkLoadEvent
(@NotNull Chunk chunk, boolean newChunk, @NotNull Object rawLevelChunk) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerList
NMS 청크를 가져옵니다.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
callEvent, getEventContext, getEventName, isAsynchronous, isSupportInterrupt
-
Constructor Details
-
ChunkLoadEvent
-
ChunkLoadEvent
-
-
Method Details
-
getRawLevelChunk
NMS 청크를 가져옵니다.- Returns:
- NMS 청크
-
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
-