Class EnderTeleportEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event

@Deprecated public class EnderTeleportEvent extends LivingEvent
Event for when an Enderman/Shulker teleports or an ender pearl is used. Can be used to either modify the target position, or cancel the teleport outright.
Author:
Mithion
  • Field Details

    • targetX

      private double targetX
      Deprecated.
    • targetY

      private double targetY
      Deprecated.
    • targetZ

      private double targetZ
      Deprecated.
    • attackDamage

      private float attackDamage
      Deprecated.
  • Constructor Details

    • EnderTeleportEvent

      public EnderTeleportEvent(LivingEntity entity, double targetX, double targetY, double targetZ, float attackDamage)
      Deprecated.
  • Method Details

    • getTargetX

      public double getTargetX()
      Deprecated.
    • setTargetX

      public void setTargetX(double targetX)
      Deprecated.
    • getTargetY

      public double getTargetY()
      Deprecated.
    • setTargetY

      public void setTargetY(double targetY)
      Deprecated.
    • getTargetZ

      public double getTargetZ()
      Deprecated.
    • setTargetZ

      public void setTargetZ(double targetZ)
      Deprecated.
    • getAttackDamage

      public float getAttackDamage()
      Deprecated.
    • setAttackDamage

      public void setAttackDamage(float attackDamage)
      Deprecated.