Class ChunkEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.level.LevelEvent
net.minecraftforge.event.level.ChunkEvent
Direct Known Subclasses:
ChunkDataEvent, ChunkEvent.Load, ChunkEvent.Unload

public class ChunkEvent extends LevelEvent
ChunkEvent is fired when an event involving a chunk occurs.
If a method utilizes this Event as its parameter, the method will receive every child event of this class.

chunk contains the Chunk this event is affecting.

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the level.
    This event is fired during chunk loading in
    Chunk.onChunkLoad().
    static class 
    ChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the level.
    This event is fired during chunk unloading in
    Chunk.onChunkUnload().

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

    LevelEvent.CreateSpawnPosition, LevelEvent.PotentialSpawns, LevelEvent.Save

    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 ChunkAccess
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    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