    001package net.minecraftforge.event.entity.living;
    002
    003import net.minecraft.entity.EntityLiving;
    004import net.minecraftforge.event.Cancelable;
    005import net.minecraftforge.event.Event;
    006
    007/**
    008 * Event for when an Enderman teleports or an ender pearl is used.  Can be used to either modify the target position, or cancel the teleport outright.
    009 * @author Mithion
    010 *
    011 */
    012@Cancelable
    013public class EnderTeleportEvent extends LivingEvent
    014{
    015
    016    public double targetX;
    017    public double targetY;
    018    public double targetZ;
    019    public int attackDamage;
    020
    021    public EnderTeleportEvent(EntityLiving entity, double targetX, double targetY, double targetZ, int attackDamage)
    022    {
    023        super(entity);
    024        this.targetX = targetX;
    025        this.targetY = targetY;
    026        this.targetZ = targetZ;
    027        this.attackDamage = attackDamage;
    028    }
    029}