Class PhantomEntity

All Implemented Interfaces:
Monster, CommandOutput, Nameable, EntityLike

public class PhantomEntity extends FlyingEntity implements Monster
Mappings:
Namespace Name
official brs
intermediary net/minecraft/class_1593
named net/minecraft/entity/mob/PhantomEntity
  • Field Details

    • field_30475

      public static final float field_30475
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbrs;b:F
      intermediary field_30475 Lnet/minecraft/class_1593;field_30475:F
      named field_30475 Lnet/minecraft/entity/mob/PhantomEntity;field_30475:F
    • field_28641

      public static final int field_28641
      Mappings:
      Namespace Name Mixin selector
      official c Lbrs;c:I
      intermediary field_28641 Lnet/minecraft/class_1593;field_28641:I
      named field_28641 Lnet/minecraft/entity/mob/PhantomEntity;field_28641:I
    • SIZE

      private static final TrackedData<Integer> SIZE
      Mappings:
      Namespace Name Mixin selector
      official d Lbrs;d:Laaj;
      intermediary field_7313 Lnet/minecraft/class_1593;field_7313:Lnet/minecraft/class_2940;
      named SIZE Lnet/minecraft/entity/mob/PhantomEntity;SIZE:Lnet/minecraft/entity/data/TrackedData;
    • targetPosition

      Vec3d targetPosition
      Mappings:
      Namespace Name Mixin selector
      official e Lbrs;e:Ldwq;
      intermediary field_7314 Lnet/minecraft/class_1593;field_7314:Lnet/minecraft/class_243;
      named targetPosition Lnet/minecraft/entity/mob/PhantomEntity;targetPosition:Lnet/minecraft/util/math/Vec3d;
    • circlingCenter

      BlockPos circlingCenter
      Mappings:
      Namespace Name Mixin selector
      official bW Lbrs;bW:Lgt;
      intermediary field_7312 Lnet/minecraft/class_1593;field_7312:Lnet/minecraft/class_2338;
      named circlingCenter Lnet/minecraft/entity/mob/PhantomEntity;circlingCenter:Lnet/minecraft/util/math/BlockPos;
    • movementType

      Mappings:
      Namespace Name Mixin selector
      official bX Lbrs;bX:Lbrs$a;
      intermediary field_7315 Lnet/minecraft/class_1593;field_7315:Lnet/minecraft/class_1593$class_1594;
      named movementType Lnet/minecraft/entity/mob/PhantomEntity;movementType:Lnet/minecraft/entity/mob/PhantomEntity$PhantomMovementType;
  • Constructor Details

    • PhantomEntity

      public PhantomEntity(EntityType<? extends PhantomEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbbn;<init>(Lbbr;Lcgx;)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
  • Method Details

    • hasWings

      public boolean hasWings()
      Returns whether the entity has wings.

      Entities with wings will call Entity.addFlapEffects() inside Entity.addAirTravelEffects().

      Overrides:
      hasWings in class Entity
      Returns:
      whether the entity has wings
      Mappings:
      Namespace Name Mixin selector
      official aL Lbbn;aL()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      named hasWings Lnet/minecraft/entity/Entity;hasWings()Z
    • createBodyControl

      protected BodyControl createBodyControl()
      Overrides:
      createBodyControl in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official y Lbce;y()Lbhn;
      intermediary method_5963 Lnet/minecraft/class_1308;method_5963()Lnet/minecraft/class_1330;
      named createBodyControl Lnet/minecraft/entity/mob/MobEntity;createBodyControl()Lnet/minecraft/entity/ai/control/BodyControl;
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official u Lbce;u()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a_ Lbbn;a_()V
      intermediary method_5693 Lnet/minecraft/class_1297;method_5693()V
      named initDataTracker Lnet/minecraft/entity/Entity;initDataTracker()V
    • setPhantomSize

      public void setPhantomSize(int size)
      Mappings:
      Namespace Name Mixin selector
      official a Lbrs;a(I)V
      intermediary method_7091 Lnet/minecraft/class_1593;method_7091(I)V
      named setPhantomSize Lnet/minecraft/entity/mob/PhantomEntity;setPhantomSize(I)V
    • onSizeChanged

      private void onSizeChanged()
      Mappings:
      Namespace Name Mixin selector
      official t Lbrs;t()V
      intermediary method_7097 Lnet/minecraft/class_1593;method_7097()V
      named onSizeChanged Lnet/minecraft/entity/mob/PhantomEntity;onSizeChanged()V
    • getPhantomSize

      public int getPhantomSize()
      Mappings:
      Namespace Name Mixin selector
      official n Lbrs;n()I
      intermediary method_7084 Lnet/minecraft/class_1593;method_7084()I
      named getPhantomSize Lnet/minecraft/entity/mob/PhantomEntity;getPhantomSize()I
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbcc;b(Lbco;Lbbo;)F
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • onTrackedDataSet

      public void onTrackedDataSet(TrackedData<?> data)
      Called on the client when the tracked data is set.

      This can be overridden to refresh other fields when the tracked data is set or changed.

      Overrides:
      onTrackedDataSet in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Laaj;)V
      intermediary method_5674 Lnet/minecraft/class_1297;method_5674(Lnet/minecraft/class_2940;)V
      named onTrackedDataSet Lnet/minecraft/entity/Entity;onTrackedDataSet(Lnet/minecraft/entity/data/TrackedData;)V
    • method_33588

      public int method_33588()
      Mappings:
      Namespace Name Mixin selector
      official q Lbrs;q()I
      intermediary method_33588 Lnet/minecraft/class_1593;method_33588()I
      named method_33588 Lnet/minecraft/entity/mob/PhantomEntity;method_33588()I
    • isDisallowedInPeaceful

      protected boolean isDisallowedInPeaceful()
      Overrides:
      isDisallowedInPeaceful in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official Q Lbce;Q()Z
      intermediary method_23734 Lnet/minecraft/class_1308;method_23734()Z
      named isDisallowedInPeaceful Lnet/minecraft/entity/mob/MobEntity;isDisallowedInPeaceful()Z
    • tick

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

      public void tickMovement()
      Overrides:
      tickMovement in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official w_ Lbcc;w_()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
    • mobTick

      protected void mobTick()
      Overrides:
      mobTick in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official T Lbce;T()V
      intermediary method_5958 Lnet/minecraft/class_1308;method_5958()V
      named mobTick Lnet/minecraft/entity/mob/MobEntity;mobTick()V
    • initialize

      public EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbce;a(Lchm;Lbah;Lbcg;Lbcu;Lpj;)Lbcu;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;Lnet/minecraft/class_2487;)Lnet/minecraft/class_1315;
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/entity/EntityData;
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses has 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.

      Overrides:
      readCustomDataFromNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lpj;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses has 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.

      Overrides:
      writeCustomDataToNbt in class MobEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbbn;b(Lpj;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • shouldRender

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

      public SoundCategory getSoundCategory()
      Returns the sound category for sounds from this entity.

      This is used by Entity.playSound(SoundEvent, float, float) and defaults to SoundCategory.NEUTRAL. Hostile entities should override this to return SoundCategory.HOSTILE.

      Overrides:
      getSoundCategory in class Entity
      Returns:
      the sound category for sounds from this entity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cR Lbbn;cR()Lajx;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official r Lbce;r()Lajv;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lbcc;c(Lbaw;)Lajv;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official x_ Lbcc;x_()Lajv;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getGroup

      public EntityGroup getGroup()
      Overrides:
      getGroup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official ey Lbcc;ey()Lbch;
      intermediary method_6046 Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;
      named getGroup Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eC Lbcc;eC()F
      intermediary method_6107 Lnet/minecraft/class_1309;method_6107()F
      named getSoundVolume Lnet/minecraft/entity/LivingEntity;getSoundVolume()F
    • canTarget

      public boolean canTarget(EntityType<?> type)
      Overrides:
      canTarget in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbcc;a(Lbbr;)Z
      intermediary method_5973 Lnet/minecraft/class_1309;method_5973(Lnet/minecraft/class_1299;)Z
      named canTarget Lnet/minecraft/entity/LivingEntity;canTarget(Lnet/minecraft/entity/EntityType;)Z
    • getDimensions

      public EntityDimensions getDimensions(EntityPose pose)
      Returns the dimensions of the entity with the given pose.
      Overrides:
      getDimensions in class LivingEntity
      Returns:
      the dimensions of the entity with the given pose
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lbco;)Lbbo;
      intermediary method_18377 Lnet/minecraft/class_1297;method_18377(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      named getDimensions Lnet/minecraft/entity/Entity;getDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;