public class ChunkDataEvent extends ChunkEvent
Event as its parameter, the method will
receive every child event of this class.data contains the NBTTagCompound containing the chunk data for this event.MinecraftForge#EVENT_BUS.| Modifier and Type | Class and Description |
|---|---|
static class |
ChunkDataEvent.Load
ChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
This event is fired during chunk loading in ChunkIOProvider#callStage2(QueuedChunk, Chunk). |
static class |
ChunkDataEvent.Save
ChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
This event is fired during chunk saving in AnvilChunkLoader#saveChunk(World, Chunk). |
ChunkEvent.UnloadWorldEvent.CreateSpawnPosition, WorldEvent.PotentialSpawnsEvent.HasResult, Event.Resultworld| Constructor and Description |
|---|
ChunkDataEvent(Chunk chunk,
NBTTagCompound data) |
| Modifier and Type | Method and Description |
|---|---|
NBTTagCompound |
getData() |
getChunkgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic ChunkDataEvent(Chunk chunk, NBTTagCompound data)
public NBTTagCompound getData()