mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-22 05:02:18 +00:00
Ender Teleport Changes
Renamed Ender Teleport Event and added it in to ender pearls.
This commit is contained in:
1 parent
81ff5d7896
commit
e13dff305e
3 files changed
+33
-5
No files matched your search
+3
-3
@@ -5,18 +5,18 @@ import net.minecraftforge.event.Cancelable;
|
||||
import net.minecraftforge.event.Event;
|
||||
|
||||
/**
|
||||
* Event for when an Enderman teleports. Can be used to either modify the target position, or cancel the teleport outright.
|
||||
* 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 EndermanTeleportEvent extends LivingEvent{
|
||||
public class EnderTeleportEvent extends LivingEvent{
|
||||
|
||||
public double targetX;
|
||||
public double targetY;
|
||||
public double targetZ;
|
||||
|
||||
public EndermanTeleportEvent(EntityLiving entity, double targetX, double targetY, double targetZ)
|
||||
public EnderTeleportEvent(EntityLiving entity, double targetX, double targetY, double targetZ)
|
||||
{
|
||||
super(entity);
|
||||
this.targetX = targetX;
|
||||
Reference in new issue
Block a user