Class EnderPearlEntity

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

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

    • EnderPearlEntity

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

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

    • getDefaultItem

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

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

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

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class ThrownEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lbfj;l()V
      intermediary method_5773 Lnet/minecraft/class_1297;method_5773()V
      named tick Lnet/minecraft/entity/Entity;tick()V
    • moveToWorld

      @Nullable public @Nullable Entity moveToWorld(ServerWorld destination)
      Moves this entity to another world.

      Note all entities except server player entities are completely recreated at the destination.

      Overrides:
      moveToWorld in class Entity
      Returns:
      the entity in the other world
      Mappings:
      Namespace Name Mixin selector
      official b Lbfj;b(Laif;)Lbfj;
      intermediary method_5731 Lnet/minecraft/class_1297;method_5731(Lnet/minecraft/class_3218;)Lnet/minecraft/class_1297;
      named moveToWorld Lnet/minecraft/entity/Entity;moveToWorld(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/entity/Entity;