Interface ChunkEvent.Entities.Load
- All Superinterfaces:
ChunkEvent
,ChunkEvent.Entities
,ChunkEvent.WorldScoped
,Event
- Enclosing interface:
ChunkEvent.Entities
Called when an entity 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.Entities
ChunkEvent.Entities.Load, ChunkEvent.Entities.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
EntityChunk chunk()Gets thechunk
entity volume.- Returns:
- The entity chunk
-