Interface ChunkEvent.Load
-
- All Superinterfaces:
ChunkEvent
,ChunkEvent.WorldScoped
,Event
- Enclosing interface:
- ChunkEvent
public static interface ChunkEvent.Load extends ChunkEvent.WorldScoped
Called when achunk
is loaded. This can be called outside themain
Thread
. It is NOT safe to perform modifications to theWorld
or viaServerLocation
as this could result in a deadlock.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
ChunkEvent.Generated, ChunkEvent.Load, ChunkEvent.Save, ChunkEvent.Unload, ChunkEvent.WorldScoped
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WorldChunk
chunk()
Gets thechunk
being changed.-
Methods inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
chunkPosition
-
Methods inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent.WorldScoped
worldKey
-
-
-
-
Method Detail
-
chunk
WorldChunk chunk()
Gets thechunk
being changed.- Returns:
- The chunk
-
-