Class EnderPearlEntity

All Implemented Interfaces:
ComponentsAccess, DataTracked, FlyingItemEntity, Ownable, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable

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

    • chunkTicketExpiryTicks

      private long chunkTicketExpiryTicks
      Mappings:
      Namespace Name Mixin selector
      named chunkTicketExpiryTicks Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;chunkTicketExpiryTicks:J
      intermediary field_54228 Lnet/minecraft/class_1684;field_54228:J
      official a Lcvy;a:J
  • 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> Lbzm;<init>(Lbzv;Ldmu;)V
    • EnderPearlEntity

      public EnderPearlEntity(World world, LivingEntity owner, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;<init>(Lnet/minecraft/world/World;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
      intermediary <init> Lnet/minecraft/class_1684;<init>(Lnet/minecraft/class_1937;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)V
      official <init> Lcvy;<init>(Ldmu;Lcam;Ldcv;)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 f Lcvv;f()Ldcr;
    • setOwner

      protected void setOwner(@Nullable @Nullable LazyEntityReference<Entity> owner)
      Overrides:
      setOwner in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named setOwner Lnet/minecraft/entity/projectile/ProjectileEntity;setOwner(Lnet/minecraft/entity/LazyEntityReference;)V
      intermediary method_71623 Lnet/minecraft/class_1676;method_71623(Lnet/minecraft/class_10583;)V
      official a Lcvo;a(Lbzs;)V
    • removeFromOwner

      private void removeFromOwner()
      Mappings:
      Namespace Name Mixin selector
      named removeFromOwner Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;removeFromOwner()V
      intermediary method_64181 Lnet/minecraft/class_1684;method_64181()V
      official i Lcvy;i()V
    • addToOwner

      private void addToOwner()
      Mappings:
      Namespace Name Mixin selector
      named addToOwner Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;addToOwner()V
      intermediary method_64182 Lnet/minecraft/class_1684;method_64182()V
      official l Lcvy;l()V
    • getOwner

      @Nullable public @Nullable Entity getOwner()
      Specified by:
      getOwner in interface Ownable
      Overrides:
      getOwner in class ProjectileEntity
      Mappings:
      Namespace Name Mixin selector
      named getOwner Lnet/minecraft/entity/Ownable;getOwner()Lnet/minecraft/entity/Entity;
      intermediary method_24921 Lnet/minecraft/class_8046;method_24921()Lnet/minecraft/class_1297;
      official ah_ Lcbk;ah_()Lbzm;
    • resolveOwner

      @Nullable private static @Nullable Entity resolveOwner(ServerWorld world, UUID uuid)
      Mappings:
      Namespace Name Mixin selector
      named resolveOwner Lnet/minecraft/entity/projectile/thrown/EnderPearlEntity;resolveOwner(Lnet/minecraft/server/world/ServerWorld;Ljava/util/UUID;)Lnet/minecraft/entity/Entity;
      intermediary method_71625 Lnet/minecraft/class_1684;method_71625(Lnet/minecraft/class_3218;Ljava/util/UUID;)Lnet/minecraft/class_1297;
      official a Lcvy;a(Laub;Ljava/util/UUID;)Lbzm;
    • 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 Lcvo;a(Lfip;)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 Lcvo;a(Lfiq;)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 Lcvy;a(Lbzm;Ldmu;)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 g Lbzm;g()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 Lcvy;a(Ldmu;Lfis;)V
    • teleportTo

      @Nullable public @Nullable Entity teleportTo(TeleportTarget teleportTarget)
      Teleports this entity to another location, potentially in another world.

      Note if teleported to a different world, entities (excluding server player entities) are completely recreated at the destination.

      Overrides:
      teleportTo in class Entity
      Returns:
      the entity after teleporting
      Mappings:
      Namespace Name Mixin selector
      named teleportTo Lnet/minecraft/entity/Entity;teleportTo(Lnet/minecraft/world/TeleportTarget;)Lnet/minecraft/entity/Entity;
      intermediary method_5731 Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_5454;)Lnet/minecraft/class_1297;
      official b Lbzm;b(Lfbl;)Lbzm;
    • 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 Lbzm;a(Ldmu;Ldmu;)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 Lbzm;a(Leeb;)V
    • onRemove

      public void onRemove(Entity.RemovalReason reason)
      Called when the entity is about to be removed.
      Overrides:
      onRemove in class Entity
      Mappings:
      Namespace Name Mixin selector
      named onRemove Lnet/minecraft/entity/Entity;onRemove(Lnet/minecraft/entity/Entity$RemovalReason;)V
      intermediary method_64615 Lnet/minecraft/class_1297;method_64615(Lnet/minecraft/class_1297$class_5529;)V
      official b Lbzm;b(Lbzm$e;)V
    • onBubbleColumnSurfaceCollision

      public void onBubbleColumnSurfaceCollision(boolean drag, BlockPos pos)
      Called when the entity collides with a bubble column with an air above.

      This applies the bubble column velocity by default. BoatEntity uses this to spawn splash particles.

      Overrides:
      onBubbleColumnSurfaceCollision in class ProjectileEntity
      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      named onBubbleColumnSurfaceCollision Lnet/minecraft/entity/Entity;onBubbleColumnSurfaceCollision(ZLnet/minecraft/util/math/BlockPos;)V
      intermediary method_5700 Lnet/minecraft/class_1297;method_5700(ZLnet/minecraft/class_2338;)V
      official a Lbzm;a(ZLjb;)V
    • onBubbleColumnCollision

      public void onBubbleColumnCollision(boolean drag)
      Called when the entity collides with a bubble column without an air above.

      This applies the bubble column velocity by default.

      Overrides:
      onBubbleColumnCollision in class ProjectileEntity
      Parameters:
      drag - whether the entity should be dragged downwards
      Mappings:
      Namespace Name Mixin selector
      named onBubbleColumnCollision Lnet/minecraft/entity/Entity;onBubbleColumnCollision(Z)V
      intermediary method_5764 Lnet/minecraft/class_1297;method_5764(Z)V
      official m Lbzm;m(Z)V