    001package net.minecraftforge.event.entity;
    002
    003import net.minecraft.entity.Entity;
    004import net.minecraftforge.event.Event;
    005
    006public class EntityEvent extends Event
    007{
    008    public final Entity entity;
    009
    010    public EntityEvent(Entity entity)
    011    {
    012        this.entity = entity;
    013    }
    014
    015    public static class CanUpdate extends EntityEvent
    016    {
    017        public boolean canUpdate = false;
    018        public CanUpdate(Entity entity)
    019        {
    020            super(entity);
    021        }
    022    }
    023
    024    public static class EnteringChunk extends EntityEvent
    025    {
    026        public int newChunkX;
    027        public int newChunkZ;
    028        public int oldChunkX;
    029        public int oldChunkZ;
    030
    031        public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
    032        {
    033            super(entity);
    034            this.newChunkX = newChunkX;
    035            this.newChunkZ = newChunkZ;
    036            this.oldChunkX = oldChunkX;
    037            this.oldChunkZ = oldChunkZ;
    038        }
    039    }
    040}