Class ChunkEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ChunkEvent.Load
      ChunkEvent.Load is fired when vanilla Minecraft attempts to load a Chunk into the world.
      This event is fired during chunk loading in
      ChunkProviderClient#loadChunk(int, int),
      Chunk.onChunkLoad().
      static class  ChunkEvent.Unload
      ChunkEvent.Unload is fired when vanilla Minecraft attempts to unload a Chunk from the world.
      This event is fired during chunk unloading in
      Chunk.onChunkUnload().
      • 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 IChunk chunk  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IChunk getChunk()  
      • Methods inherited from class net.minecraftforge.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • chunk

        private final IChunk chunk
    • Constructor Detail

      • ChunkEvent

        public ChunkEvent​(IChunk chunk)
      • ChunkEvent

        public ChunkEvent​(IChunk chunk,
                          IWorld world)
    • Method Detail

      • getChunk

        public IChunk getChunk()