Class EntityTeleportEvent.EnderPearl

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityTeleportEvent
net.minecraftforge.event.entity.EntityTeleportEvent.EnderPearl
Enclosing class:
EntityTeleportEvent

public static class EntityTeleportEvent.EnderPearl extends EntityTeleportEvent
EntityTeleportEvent.EnderPearl is fired before an Entity is teleported from an EnderPearlEntity.
This event is Cancelable.
If the event is not canceled, the entity will be teleported.
This event does not have a result. Event.HasResult

This event is fired on the MinecraftForge.EVENT_BUS.

This event is only fired on the LogicalSide.SERVER side.

If this event is canceled, the entity will not be teleported.
  • Field Details

    • player

      private final ServerPlayer player
    • pearlEntity

      private final ThrownEnderpearl pearlEntity
    • attackDamage

      private float attackDamage
  • Constructor Details

    • EnderPearl

      public EnderPearl(ServerPlayer entity, double targetX, double targetY, double targetZ, ThrownEnderpearl pearlEntity, float attackDamage)
  • Method Details

    • getPearlEntity

      public ThrownEnderpearl getPearlEntity()
    • getPlayer

      public ServerPlayer getPlayer()
    • getAttackDamage

      public float getAttackDamage()
    • setAttackDamage

      public void setAttackDamage(float attackDamage)