e13dff305e
Renamed Ender Teleport Event and added it in to ender pearls.
26 lines
748 B
Java
26 lines
748 B
Java
package net.minecraftforge.event.entity.living;
|
|
|
|
import net.minecraft.entity.EntityLiving;
|
|
import net.minecraftforge.event.Cancelable;
|
|
import net.minecraftforge.event.Event;
|
|
|
|
/**
|
|
* 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.
|
|
* @author Mithion
|
|
*
|
|
*/
|
|
@Cancelable
|
|
public class EnderTeleportEvent extends LivingEvent{
|
|
|
|
public double targetX;
|
|
public double targetY;
|
|
public double targetZ;
|
|
|
|
public EnderTeleportEvent(EntityLiving entity, double targetX, double targetY, double targetZ)
|
|
{
|
|
super(entity);
|
|
this.targetX = targetX;
|
|
this.targetY = targetY;
|
|
this.targetZ = targetZ;
|
|
}
|
|
}
|