Class EyeOfEnderEntity

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

public class EyeOfEnderEntity extends Entity implements FlyingItemEntity
Mappings:
Namespace Name
named net/minecraft/entity/EyeOfEnderEntity
intermediary net/minecraft/class_1672
official cqi
  • 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 Lcqi;a: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 b Lcqi;b:Lalc;
    • targetX

      private double targetX
      Mappings:
      Namespace Name Mixin selector
      named targetX Lnet/minecraft/entity/EyeOfEnderEntity;targetX:D
      intermediary field_7619 Lnet/minecraft/class_1672;field_7619:D
      official c Lcqi;c:D
    • targetY

      private double targetY
      Mappings:
      Namespace Name Mixin selector
      named targetY Lnet/minecraft/entity/EyeOfEnderEntity;targetY:D
      intermediary field_7618 Lnet/minecraft/class_1672;field_7618:D
      official d Lcqi;d:D
    • targetZ

      private double targetZ
      Mappings:
      Namespace Name Mixin selector
      named targetZ Lnet/minecraft/entity/EyeOfEnderEntity;targetZ:D
      intermediary field_7617 Lnet/minecraft/class_1672;field_7617:D
      official e Lcqi;e:D
    • 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 Lcqi;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 Lcqi;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> Lbvj;<init>(Lbvq;Ldhh;)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> Lcqi;<init>(Ldhh;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 Lcqi;a(Lcxo;)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 l Lcqm;l()Lcxo;
    • 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 Lbvj;a(Lalg$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 Lbvj;a(D)Z
    • initTargetPos

      public void initTargetPos(BlockPos 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.
      Parameters:
      pos - the block the eye of ender is drawn towards
      Mappings:
      Namespace Name Mixin selector
      named initTargetPos Lnet/minecraft/entity/EyeOfEnderEntity;initTargetPos(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_7478 Lnet/minecraft/class_1672;method_7478(Lnet/minecraft/class_2338;)V
      official a Lcqi;a(Ljh;)V
    • setVelocityClient

      public void setVelocityClient(double x, double y, double z)
      Overrides:
      setVelocityClient in class Entity
      Mappings:
      Namespace Name Mixin selector
      named setVelocityClient Lnet/minecraft/entity/Entity;setVelocityClient(DDD)V
      intermediary method_5750 Lnet/minecraft/class_1297;method_5750(DDD)V
      official l Lbvj;l(DDD)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 h Lbvj;h()V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Specified by:
      writeCustomDataToNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Specified by:
      readCustomDataFromNbt in class Entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)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 m Lcqi;m()Lcxo;
    • 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 by Lbvj;by()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 cB Lbvj;cB()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

      invalid reference
      #isInvulnerableTo
      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 Lbvj;a(Lash;Lbtz;F)Z