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