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.
|
static class |
ChunkDataEvent.Save
ChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
|
ChunkEvent.Unload
WorldEvent.CreateSpawnPosition, WorldEvent.PotentialSpawns
Event.HasResult, Event.Result
Constructor and Description |
---|
ChunkDataEvent(Chunk chunk,
NBTTagCompound data) |
Modifier and Type | Method and Description |
---|---|
NBTTagCompound |
getData() |
getChunk
getWorld
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public ChunkDataEvent(Chunk chunk, NBTTagCompound data)
public NBTTagCompound getData()