31a908b754
Refactored some of the events to be a better hiarachy.
32 lines
698 B
Java
32 lines
698 B
Java
package net.minecraftforge.event.entity.living;
|
|
|
|
import net.minecraft.src.EntityLiving;
|
|
import net.minecraft.src.World;
|
|
|
|
public class LivingSpecialSpawnEvent extends LivingEvent
|
|
{
|
|
public final World world;
|
|
public final float x;
|
|
public final float y;
|
|
public final float z;
|
|
private boolean handeled = false;
|
|
|
|
public LivingSpecialSpawnEvent(EntityLiving entity, World world, float x, float y, float z)
|
|
{
|
|
super(entity);
|
|
this.world = world;
|
|
this.x = x;
|
|
this.y = y;
|
|
this.z = z;
|
|
}
|
|
|
|
public void setHandeled()
|
|
{
|
|
handeled = true;
|
|
}
|
|
|
|
public boolean isHandeled()
|
|
{
|
|
return handeled;
|
|
}
|
|
}
|