Class EyeOfEnderEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.EyeOfEnderEntity
All Implemented Interfaces:
ComponentsAccess, DataTracked, FlyingItemEntity, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable

public class EyeOfEnderEntity extends Entity implements FlyingItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/EyeOfEnderEntity
intermediary net/minecraft/class_1672
official cvh
  • Field Details

    • field_52507

      private static final float field_52507
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52507 Lnet/minecraft/entity/EyeOfEnderEntity;field_52507:F
      intermediary field_52507 Lnet/minecraft/class_1672;field_52507:F
      official a Lcvh;a:F
    • field_60555

      private static final float field_60555
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_60555 Lnet/minecraft/entity/EyeOfEnderEntity;field_60555:F
      intermediary field_60555 Lnet/minecraft/class_1672;field_60555:F
      official b Lcvh;b:F
    • field_60556

      private static final float field_60556
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_60556 Lnet/minecraft/entity/EyeOfEnderEntity;field_60556:F
      intermediary field_60556 Lnet/minecraft/class_1672;field_60556:F
      official c Lcvh;c:F
    • ITEM

      private static final TrackedData<ItemStack> ITEM
      Mappings:
      Namespace Name Mixin selector
      named ITEM Lnet/minecraft/entity/EyeOfEnderEntity;ITEM:Lnet/minecraft/entity/data/TrackedData;
      intermediary field_17080 Lnet/minecraft/class_1672;field_17080:Lnet/minecraft/class_2940;
      official d Lcvh;d:Lalh;
    • targetPos

      @Nullable private @Nullable Vec3d targetPos
      Mappings:
      Namespace Name Mixin selector
      named targetPos Lnet/minecraft/entity/EyeOfEnderEntity;targetPos:Lnet/minecraft/util/math/Vec3d;
      intermediary field_60557 Lnet/minecraft/class_1672;field_60557:Lnet/minecraft/class_243;
      official e Lcvh;e:Lfis;
    • lifespan

      private int lifespan
      Mappings:
      Namespace Name Mixin selector
      named lifespan Lnet/minecraft/entity/EyeOfEnderEntity;lifespan:I
      intermediary field_7620 Lnet/minecraft/class_1672;field_7620:I
      official f Lcvh;f:I
    • dropsItem

      private boolean dropsItem
      Mappings:
      Namespace Name Mixin selector
      named dropsItem Lnet/minecraft/entity/EyeOfEnderEntity;dropsItem:Z
      intermediary field_7621 Lnet/minecraft/class_1672;field_7621:Z
      official g Lcvh;g:Z
  • Constructor Details

    • EyeOfEnderEntity

      public EyeOfEnderEntity(EntityType<? extends EyeOfEnderEntity> 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
    • EyeOfEnderEntity

      public EyeOfEnderEntity(World world, double x, double y, double z)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/EyeOfEnderEntity;<init>(Lnet/minecraft/world/World;DDD)V
      intermediary <init> Lnet/minecraft/class_1672;<init>(Lnet/minecraft/class_1937;DDD)V
      official <init> Lcvh;<init>(Ldmu;DDD)V
  • Method Details

    • setItem

      public void setItem(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named setItem Lnet/minecraft/entity/EyeOfEnderEntity;setItem(Lnet/minecraft/item/ItemStack;)V
      intermediary method_16933 Lnet/minecraft/class_1672;method_16933(Lnet/minecraft/class_1799;)V
      official a Lcvh;a(Ldcv;)V
    • getStack

      public ItemStack getStack()
      Specified by:
      getStack in interface FlyingItemEntity
      Mappings:
      Namespace Name Mixin selector
      named getStack Lnet/minecraft/entity/FlyingItemEntity;getStack()Lnet/minecraft/item/ItemStack;
      intermediary method_7495 Lnet/minecraft/class_3856;method_7495()Lnet/minecraft/class_1799;
      official e Lcvl;e()Ldcv;
    • initDataTracker

      protected void initDataTracker(DataTracker.Builder builder)
      Initializes data tracker.
      Specified by:
      initDataTracker in class Entity
      API Note:
      Subclasses should override this and add to the builder any data that needs to be tracked.
      Mappings:
      Namespace Name Mixin selector
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker(Lnet/minecraft/entity/data/DataTracker$Builder;)V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693(Lnet/minecraft/class_2945$class_9222;)V
      official a Lbzm;a(Lall$a;)V
    • shouldRender

      public boolean shouldRender(double distance)
      Overrides:
      shouldRender in class Entity
      Mappings:
      Namespace Name Mixin selector
      named shouldRender Lnet/minecraft/entity/Entity;shouldRender(D)Z
      intermediary method_5640 Lnet/minecraft/class_1297;method_5640(D)Z
      official a Lbzm;a(D)Z
    • initTargetPos

      public void initTargetPos(Vec3d pos)
      Sets where the eye will fly towards. If close enough, it will fly directly towards it, otherwise, it will fly upwards, in the direction of the BlockPos.
      Mappings:
      Namespace Name Mixin selector
      named initTargetPos Lnet/minecraft/entity/EyeOfEnderEntity;initTargetPos(Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_7478 Lnet/minecraft/class_1672;method_7478(Lnet/minecraft/class_243;)V
      official a Lcvh;a(Lfis;)V
    • tick

      public void tick()
      Ticks this entity.
      Overrides:
      tick in class Entity
      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
    • addParticles

      private void addParticles(Vec3d pos, Vec3d velocity)
      Mappings:
      Namespace Name Mixin selector
      named addParticles Lnet/minecraft/entity/EyeOfEnderEntity;addParticles(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)V
      intermediary method_71622 Lnet/minecraft/class_1672;method_71622(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)V
      official b Lcvh;b(Lfis;Lfis;)V
    • updateVelocity

      private static Vec3d updateVelocity(Vec3d velocity, Vec3d currentPos, Vec3d targetPos)
      Mappings:
      Namespace Name Mixin selector
      named updateVelocity Lnet/minecraft/entity/EyeOfEnderEntity;updateVelocity(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_71621 Lnet/minecraft/class_1672;method_71621(Lnet/minecraft/class_243;Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Lnet/minecraft/class_243;
      official a Lcvh;a(Lfis;Lfis;Lfis;)Lfis;
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Specified by:
      writeCustomData in class Entity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Specified by:
      readCustomData in class Entity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • getItem

      private ItemStack getItem()
      Mappings:
      Namespace Name Mixin selector
      named getItem Lnet/minecraft/entity/EyeOfEnderEntity;getItem()Lnet/minecraft/item/ItemStack;
      intermediary method_56684 Lnet/minecraft/class_1672;method_56684()Lnet/minecraft/class_1799;
      official f Lcvh;f()Ldcv;
    • getBrightnessAtEyes

      public float getBrightnessAtEyes()
      Overrides:
      getBrightnessAtEyes in class Entity
      Mappings:
      Namespace Name Mixin selector
      named getBrightnessAtEyes Lnet/minecraft/entity/Entity;getBrightnessAtEyes()F
      intermediary method_5718 Lnet/minecraft/class_1297;method_5718()F
      official bB Lbzm;bB()F
    • isAttackable

      public boolean isAttackable()
      Returns whether the entity can be attacked by players.

      Note that this is not called for most entities defined in vanilla as unattackable (such as ItemEntity and ExperienceOrbEntity) as trying to attack them kicks the player.

      Overrides:
      isAttackable in class Entity
      Returns:
      whether the entity can be attacked by players
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named isAttackable Lnet/minecraft/entity/Entity;isAttackable()Z
      intermediary method_5732 Lnet/minecraft/class_1297;method_5732()Z
      official cF Lbzm;cF()Z
    • damage

      public boolean damage(ServerWorld world, DamageSource source, float amount)
      Applies a damage to this entity. The exact implementation differs between subclasses.

      LivingEntity has health value, and damaging the entity decreases it. This also handles shields, extra damage to helmets for falling blocks, setting the attacker, playing hurt sound, etc.

      Some entities like ItemEntity also have health value, which the overridden method decrements. There also exist several entities, like EndCrystalEntity, where any damage discards the entity (perhaps with an explosion).

      If this is overridden, it must check the result of LivingEntity.isInvulnerableTo(net.minecraft.server.world.ServerWorld, net.minecraft.entity.damage.DamageSource) and return early.

      Specified by:
      damage in class Entity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/damage/DamageSource;F)Z
      intermediary method_64397 Lnet/minecraft/class_1297;method_64397(Lnet/minecraft/class_3218;Lnet/minecraft/class_1282;F)Z
      official a Lbzm;a(Laub;Lbyb;F)Z