Class EntityEvent.EnteringChunk

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityEvent.EnteringChunk
Enclosing class:
EntityEvent

public static class EntityEvent.EnteringChunk extends EntityEvent
EnteringChunk is fired when an Entity enters a chunk.
This event is fired whenever vanilla Minecraft determines that an entity
is entering a chunk in Chunk.addEntity(net.minecraft.entity.Entity)

This event is not Cancelable.

This event does not have a result. Event.HasResult
This event is fired on the MinecraftForge.EVENT_BUS.
  • Field Details

    • newChunkX

      private int newChunkX
    • newChunkZ

      private int newChunkZ
    • oldChunkX

      private int oldChunkX
    • oldChunkZ

      private int oldChunkZ
  • Constructor Details

    • EnteringChunk

      public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
  • Method Details

    • getNewChunkX

      public int getNewChunkX()
    • setNewChunkX

      public void setNewChunkX(int newChunkX)
    • getNewChunkZ

      public int getNewChunkZ()
    • setNewChunkZ

      public void setNewChunkZ(int newChunkZ)
    • getOldChunkX

      public int getOldChunkX()
    • setOldChunkX

      public void setOldChunkX(int oldChunkX)
    • getOldChunkZ

      public int getOldChunkZ()
    • setOldChunkZ

      public void setOldChunkZ(int oldChunkZ)