Package net.minecraftforge.event.world
Class ChunkDataEvent.Load
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.WorldEvent
-
- net.minecraftforge.event.world.ChunkEvent
-
- net.minecraftforge.event.world.ChunkDataEvent
-
- net.minecraftforge.event.world.ChunkDataEvent.Load
-
- Enclosing class:
- ChunkDataEvent
public static class ChunkDataEvent.Load extends ChunkDataEvent
ChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
This event is fired during chunk loading in {@link net.minecraft.world.chunk.storage.ChunkSerializer.read(ServerWorld, TemplateManager, PointOfInterestManager, ChunkPos, CompoundNBT)} which means it is async, so be careful.
This event is notCancelable
.
This event does not have a result.Event.HasResult
This event is fired on theMinecraftForge.EVENT_BUS
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.ChunkDataEvent
ChunkDataEvent.Load, ChunkDataEvent.Save
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.ChunkEvent
ChunkEvent.Unload
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.WorldEvent
WorldEvent.CreateSpawnPosition, WorldEvent.PotentialSpawns
-
-
Field Summary
Fields Modifier and Type Field Description private ChunkStatus.Type
status
-
Constructor Summary
Constructors Constructor Description Load(IChunk chunk, CompoundNBT data, ChunkStatus.Type status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChunkStatus.Type
getStatus()
-
Methods inherited from class net.minecraftforge.event.world.ChunkDataEvent
getData
-
Methods inherited from class net.minecraftforge.event.world.ChunkEvent
getChunk
-
Methods inherited from class net.minecraftforge.event.world.WorldEvent
getWorld
-
-
-
-
Field Detail
-
status
private ChunkStatus.Type status
-
-
Constructor Detail
-
Load
public Load(IChunk chunk, CompoundNBT data, ChunkStatus.Type status)
-
-
Method Detail
-
getStatus
public ChunkStatus.Type getStatus()
-
-