Interface ChunkEvent.Blocks.Load
- All Superinterfaces:
ChunkEvent
,ChunkEvent.Blocks
,ChunkEvent.WorldScoped
,Event
- Enclosing interface:
ChunkEvent.Blocks
Called when a block data of
chunk
is loaded.
This can be called outside the main
Thread
.
It is NOT safe to perform modifications to the World
or via
ServerLocation
as this could
result in a deadlock.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
ChunkEvent.Blocks, ChunkEvent.Entities, ChunkEvent.Generated, ChunkEvent.Unload, ChunkEvent.WorldScoped
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent.Blocks
ChunkEvent.Blocks.Load, ChunkEvent.Blocks.Save
-
Method Summary
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 Details
-
chunk
BlockChunk chunk()Gets thechunk
block volume.- Returns:
- The block chunk
-