Class EnderPearlEntity

All Implemented Interfaces:
DataTracked, FlyingItemEntity, Ownable, ScoreHolder, CommandOutput, Nameable, EntityLike

public class EnderPearlEntity extends ThrownItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/projectile/thrown/EnderPearlEntity
intermediary net/minecraft/class_1684
official cnz
  • Constructor Details

    • EnderPearlEntity

      public EnderPearlEntity(EntityType<? extends EnderPearlEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbsr;<init>(Lbsx;Ldcw;)V
    • EnderPearlEntity

      public EnderPearlEntity(World world, LivingEntity owner)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;)V
      intermediary <init> Lnet/minecraft/class_1684;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;)V
      official <init> Lcnz;<init>(Ldcw;Lbtn;)V
  • Method Details

    • getDefaultItem

      protected Item getDefaultItem()
      Specified by:
      getDefaultItem in class ThrownItemEntity
      Mappings:
      Namespace Name Mixin selector
      named getDefaultItem Lnet/minecraft/entity/projectile/thrown/ThrownItemEntity;getDefaultItem()Lnet/minecraft/item/Item;
      intermediary method_16942 Lnet/minecraft/class_3857;method_16942()Lnet/minecraft/class_1792;
      official t Lcnw;t()Lcul;
    • onEntityHit

      protected void onEntityHit(EntityHitResult entityHitResult)
      Overrides:
      onEntityHit in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onEntityHit Lnet/minecraft/entity/projectile/ProjectileEntity;onEntityHit(Lnet/minecraft/util/hit/EntityHitResult;)V
      intermediary method_7454 Lnet/minecraft/class_1676;method_7454(Lnet/minecraft/class_3966;)V
      official a Lcnp;a(Lewz;)V
    • onCollision

      protected void onCollision(HitResult hitResult)
      Overrides:
      onCollision in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named onCollision Lnet/minecraft/entity/projectile/ProjectileEntity;onCollision(Lnet/minecraft/util/hit/HitResult;)V
      intermediary method_7488 Lnet/minecraft/class_1676;method_7488(Lnet/minecraft/class_239;)V
      official a Lcnp;a(Lexa;)V
    • canTeleportEntityTo

      private static boolean canTeleportEntityTo(Entity entity, World world)
      Mappings:
      Namespace Name Mixin selector
      named canTeleportEntityTo Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;canTeleportEntityTo(Lnet/minecraft/entity/Entity;Lnet/minecraft/world/World;)Z
      intermediary method_60985 Lnet/minecraft/class_1684;method_60985(Lnet/minecraft/class_1297;Lnet/minecraft/class_1937;)Z
      official a Lcnz;a(Lbsr;Ldcw;)Z
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ThrownEntity
      See Also:
      API Note:
      This can be overridden to add additional logics. super.tick(); should be called in those cases.
      Implementation Note:
      By default, this delegates all logics to Entity.baseTick().
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/entity/Entity;tick()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      official l Lbsr;l()V
    • playTeleportSound

      private void playTeleportSound(World world, Vec3d pos)
      Mappings:
      Namespace Name Mixin selector
      named playTeleportSound Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;playTeleportSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_60729 Lnet/minecraft/class_1684;method_60729(Lnet/minecraft/class_1937;Lnet/minecraft/class_243;)V
      official a Lcnz;a(Ldcw;Lexc;)V
    • canTeleportBetween

      public boolean canTeleportBetween(World from, World to)
      Overrides:
      canTeleportBetween in class Entity
      Mappings:
      Namespace Name Mixin selector
      named canTeleportBetween Lnet/minecraft/entity/Entity;canTeleportBetween(Lnet/minecraft/world/World;Lnet/minecraft/world/World;)Z
      intermediary method_61113 Lnet/minecraft/class_1297;method_61113(Lnet/minecraft/class_1937;Lnet/minecraft/class_1937;)Z
      official a Lbsr;a(Ldcw;Ldcw;)Z
    • onBlockCollision

      protected void onBlockCollision(BlockState state)
      Called when this entity's collision box intersects state.
      Overrides:
      onBlockCollision in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named onBlockCollision Lnet/minecraft/entity/Entity;onBlockCollision(Lnet/minecraft/block/BlockState;)V
      intermediary method_5622 Lnet/minecraft/class_1297;method_5622(Lnet/minecraft/class_2680;)V
      official a Lbsr;a(Ldtc;)V