2012-08-05 10:20:07 +00:00
|
|
|
package net.minecraftforge.event.entity;
|
|
|
|
|
2012-12-13 05:58:35 +00:00
|
|
|
import net.minecraft.entity.Entity;
|
2013-03-22 19:04:00 +00:00
|
|
|
import net.minecraft.world.World;
|
2012-08-05 10:20:07 +00:00
|
|
|
import net.minecraftforge.event.Event;
|
|
|
|
|
|
|
|
public class EntityEvent extends Event
|
|
|
|
{
|
2012-08-07 23:54:14 +00:00
|
|
|
public final Entity entity;
|
2012-09-26 12:52:40 +00:00
|
|
|
|
2012-08-05 10:20:07 +00:00
|
|
|
public EntityEvent(Entity entity)
|
|
|
|
{
|
|
|
|
this.entity = entity;
|
|
|
|
}
|
2012-09-26 12:52:40 +00:00
|
|
|
|
2013-03-22 19:04:00 +00:00
|
|
|
public static class EntityConstructing extends EntityEvent
|
|
|
|
{
|
2013-03-23 20:56:01 +00:00
|
|
|
public EntityConstructing(Entity entity)
|
|
|
|
{
|
2013-03-22 19:04:00 +00:00
|
|
|
super(entity);
|
|
|
|
}
|
|
|
|
}
|
2012-09-26 12:52:40 +00:00
|
|
|
|
2012-08-07 23:54:14 +00:00
|
|
|
public static class CanUpdate extends EntityEvent
|
2012-08-05 10:20:07 +00:00
|
|
|
{
|
2012-08-07 23:54:14 +00:00
|
|
|
public boolean canUpdate = false;
|
|
|
|
public CanUpdate(Entity entity)
|
|
|
|
{
|
|
|
|
super(entity);
|
|
|
|
}
|
2012-08-05 10:20:07 +00:00
|
|
|
}
|
2012-09-26 12:52:40 +00:00
|
|
|
|
|
|
|
public static class EnteringChunk extends EntityEvent
|
|
|
|
{
|
|
|
|
public int newChunkX;
|
|
|
|
public int newChunkZ;
|
|
|
|
public int oldChunkX;
|
|
|
|
public int oldChunkZ;
|
|
|
|
|
|
|
|
public EnteringChunk(Entity entity, int newChunkX, int newChunkZ, int oldChunkX, int oldChunkZ)
|
|
|
|
{
|
|
|
|
super(entity);
|
|
|
|
this.newChunkX = newChunkX;
|
|
|
|
this.newChunkZ = newChunkZ;
|
|
|
|
this.oldChunkX = oldChunkX;
|
|
|
|
this.oldChunkZ = oldChunkZ;
|
|
|
|
}
|
|
|
|
}
|
2012-08-05 10:20:07 +00:00
|
|
|
}
|