Interface ChunkEvent.WorldScoped
- All Superinterfaces:
ChunkEvent
,Event
- All Known Subinterfaces:
ChunkEvent.Blocks
,ChunkEvent.Blocks.Load
,ChunkEvent.Blocks.Save
,ChunkEvent.Blocks.Save.Post
,ChunkEvent.Blocks.Save.Pre
,ChunkEvent.Entities
,ChunkEvent.Entities.Load
,ChunkEvent.Entities.Save
,ChunkEvent.Entities.Save.Post
,ChunkEvent.Entities.Save.Pre
,ChunkEvent.Generated
,ChunkEvent.Load
,ChunkEvent.Unload
,ChunkEvent.Unload.Post
,ChunkEvent.Unload.Pre
- Enclosing interface:
ChunkEvent
Represents an event that has knowledge about the
world
that
is being operated upon.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
ChunkEvent.Blocks, ChunkEvent.Entities, ChunkEvent.Generated, ChunkEvent.Load, ChunkEvent.Unload, ChunkEvent.WorldScoped
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
chunkPosition
-
Method Details
-
worldKey
ResourceKey worldKey()Gets thekey
of theChunkEvent.WorldScoped
that thechunk
resides in.Be careful when retrieving the
world
within this event as some events may not fire on the main thread and such world access is not thread safe.- Returns:
- The world's
key
-