Class ChunkDataEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
Direct Known Subclasses:
ChunkDataEvent.Load, ChunkDataEvent.Save

public class ChunkDataEvent extends ChunkEvent
ChunkDataEvent is fired when an event involving chunk data occurs.
If a method utilizes this 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.

All children of this event are fired on the MinecraftForge.EVENT_BUS.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    ChunkDataEvent.Load is fired when vanilla Minecraft attempts to load Chunk data.
    This event is fired during chunk loading in
    invalid reference
    ChunkSerializer#read(ServerLevel, PoiManager, ChunkPos, CompoundTag)
    which means it is async, so be careful.

    This event is not Cancelable.

    This event does not have a result.
    static class 
    ChunkDataEvent.Save is fired when vanilla Minecraft attempts to save Chunk data.
    This event is fired during chunk saving in ChunkMap#save(ChunkAccess).

    Nested classes/interfaces inherited from class net.minecraftforge.event.level.ChunkEvent

    ChunkEvent.Unload

    Nested classes/interfaces inherited from class net.minecraftforge.event.level.LevelEvent

    LevelEvent.CreateSpawnPosition, LevelEvent.PotentialSpawns

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final CompoundTag
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class net.minecraftforge.event.level.ChunkEvent

    getChunk

    Methods inherited from class net.minecraftforge.event.level.LevelEvent

    getLevel

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait