Interface ChunkEvent.WorldScoped
-
- All Superinterfaces:
ChunkEvent,Event
- All Known Subinterfaces:
ChunkEvent.Generated,ChunkEvent.Load,ChunkEvent.Save,ChunkEvent.Save.Post,ChunkEvent.Save.Pre,ChunkEvent.Unload,ChunkEvent.Unload.Post,ChunkEvent.Unload.Pre
- Enclosing interface:
- ChunkEvent
public static interface ChunkEvent.WorldScoped extends ChunkEvent
Represents an event that has knowledge about theworldthat is being operated upon.
-
-
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 ResourceKeyworldKey()-
Methods inherited from interface org.spongepowered.api.event.world.chunk.ChunkEvent
chunkPosition
-
-
-
-
Method Detail
-
worldKey
ResourceKey worldKey()
Gets thekeyof theChunkEvent.WorldScopedthat thechunkresides in.Be careful when retrieving the
worldwithin 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
-
-