Class ParrotEntity

All Implemented Interfaces:
Flutterer, Tameable, CommandOutput, Nameable, EntityLike

public class ParrotEntity extends TameableShoulderEntity implements Flutterer
Mappings:
Namespace Name
official bnu
intermediary net/minecraft/class_1453
named net/minecraft/entity/passive/ParrotEntity
  • Field Details

    • VARIANT

      private static final TrackedData<Integer> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official ce Lbnu;ce:Laaj;
      intermediary field_6826 Lnet/minecraft/class_1453;field_6826:Lnet/minecraft/class_2940;
      named VARIANT Lnet/minecraft/entity/passive/ParrotEntity;VARIANT:Lnet/minecraft/entity/data/TrackedData;
    • CAN_IMITATE

      private static final Predicate<MobEntity> CAN_IMITATE
      Mappings:
      Namespace Name Mixin selector
      official cf Lbnu;cf:Ljava/util/function/Predicate;
      intermediary field_6821 Lnet/minecraft/class_1453;field_6821:Ljava/util/function/Predicate;
      named CAN_IMITATE Lnet/minecraft/entity/passive/ParrotEntity;CAN_IMITATE:Ljava/util/function/Predicate;
    • TAMING_INGREDIENTS

      private static final Set<Item> TAMING_INGREDIENTS
      Mappings:
      Namespace Name Mixin selector
      official ch Lbnu;ch:Ljava/util/Set;
      intermediary field_6825 Lnet/minecraft/class_1453;field_6825:Ljava/util/Set;
      named TAMING_INGREDIENTS Lnet/minecraft/entity/passive/ParrotEntity;TAMING_INGREDIENTS:Ljava/util/Set;
    • field_30351

      private static final int field_30351
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official ci Lbnu;ci:I
      intermediary field_30351 Lnet/minecraft/class_1453;field_30351:I
      named field_30351 Lnet/minecraft/entity/passive/ParrotEntity;field_30351:I
    • MOB_SOUNDS

      static final Map<EntityType<?>,SoundEvent> MOB_SOUNDS
      Mappings:
      Namespace Name Mixin selector
      official cj Lbnu;cj:Ljava/util/Map;
      intermediary field_6822 Lnet/minecraft/class_1453;field_6822:Ljava/util/Map;
      named MOB_SOUNDS Lnet/minecraft/entity/passive/ParrotEntity;MOB_SOUNDS:Ljava/util/Map;
    • flapProgress

      public float flapProgress
      Mappings:
      Namespace Name Mixin selector
      official ca Lbnu;ca:F
      intermediary field_6818 Lnet/minecraft/class_1453;field_6818:F
      named flapProgress Lnet/minecraft/entity/passive/ParrotEntity;flapProgress:F
    • maxWingDeviation

      public float maxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      official cb Lbnu;cb:F
      intermediary field_6819 Lnet/minecraft/class_1453;field_6819:F
      named maxWingDeviation Lnet/minecraft/entity/passive/ParrotEntity;maxWingDeviation:F
    • prevMaxWingDeviation

      public float prevMaxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      official cc Lbnu;cc:F
      intermediary field_6827 Lnet/minecraft/class_1453;field_6827:F
      named prevMaxWingDeviation Lnet/minecraft/entity/passive/ParrotEntity;prevMaxWingDeviation:F
    • prevFlapProgress

      public float prevFlapProgress
      Mappings:
      Namespace Name Mixin selector
      official cd Lbnu;cd:F
      intermediary field_6829 Lnet/minecraft/class_1453;field_6829:F
      named prevFlapProgress Lnet/minecraft/entity/passive/ParrotEntity;prevFlapProgress:F
    • flapSpeed

      private float flapSpeed
      Mappings:
      Namespace Name Mixin selector
      official ck Lbnu;ck:F
      intermediary field_6824 Lnet/minecraft/class_1453;field_6824:F
      named flapSpeed Lnet/minecraft/entity/passive/ParrotEntity;flapSpeed:F
    • field_28640

      private float field_28640
      Mappings:
      Namespace Name Mixin selector
      official cl Lbnu;cl:F
      intermediary field_28640 Lnet/minecraft/class_1453;field_28640:F
      named field_28640 Lnet/minecraft/entity/passive/ParrotEntity;field_28640:F
    • songPlaying

      private boolean songPlaying
      Mappings:
      Namespace Name Mixin selector
      official cm Lbnu;cm:Z
      intermediary field_6823 Lnet/minecraft/class_1453;field_6823:Z
      named songPlaying Lnet/minecraft/entity/passive/ParrotEntity;songPlaying:Z
    • songSource

      @Nullable private @Nullable BlockPos songSource
      Mappings:
      Namespace Name Mixin selector
      official cn Lbnu;cn:Lgt;
      intermediary field_6820 Lnet/minecraft/class_1453;field_6820:Lnet/minecraft/class_2338;
      named songSource Lnet/minecraft/entity/passive/ParrotEntity;songSource:Lnet/minecraft/util/math/BlockPos;
  • Constructor Details

    • ParrotEntity

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

    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData, @Nullable @Nullable NbtCompound entityNbt)
      Overrides:
      initialize in class PassiveEntity
      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;
    • isBaby

      public boolean isBaby()
      Overrides:
      isBaby in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official y_ Lbcc;y_()Z
      intermediary method_6109 Lnet/minecraft/class_1309;method_6109()Z
      named isBaby Lnet/minecraft/entity/LivingEntity;isBaby()Z
    • 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
    • createParrotAttributes

      public static DefaultAttributeContainer.Builder createParrotAttributes()
      Mappings:
      Namespace Name Mixin selector
      official fR Lbnu;fR()Lbdc$a;
      intermediary method_26889 Lnet/minecraft/class_1453;method_26889()Lnet/minecraft/class_5132$class_5133;
      named createParrotAttributes Lnet/minecraft/entity/passive/ParrotEntity;createParrotAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • createNavigation

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbce;a(Lcgx;)Lblc;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
    • 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
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      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
    • setNearbySongPlaying

      public void setNearbySongPlaying(BlockPos songPosition, boolean playing)
      Overrides:
      setNearbySongPlaying in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbcc;a(Lgt;Z)V
      intermediary method_6006 Lnet/minecraft/class_1309;method_6006(Lnet/minecraft/class_2338;Z)V
      named setNearbySongPlaying Lnet/minecraft/entity/LivingEntity;setNearbySongPlaying(Lnet/minecraft/util/math/BlockPos;Z)V
    • isSongPlaying

      public boolean isSongPlaying()
      Mappings:
      Namespace Name Mixin selector
      official fS Lbnu;fS()Z
      intermediary method_6582 Lnet/minecraft/class_1453;method_6582()Z
      named isSongPlaying Lnet/minecraft/entity/passive/ParrotEntity;isSongPlaying()Z
    • flapWings

      private void flapWings()
      Mappings:
      Namespace Name Mixin selector
      official fV Lbnu;fV()V
      intermediary method_6578 Lnet/minecraft/class_1453;method_6578()V
      named flapWings Lnet/minecraft/entity/passive/ParrotEntity;flapWings()V
    • imitateNearbyMob

      public static boolean imitateNearbyMob(World world, Entity parrot)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnu;a(Lcgx;Lbbn;)Z
      intermediary method_6587 Lnet/minecraft/class_1453;method_6587(Lnet/minecraft/class_1937;Lnet/minecraft/class_1297;)Z
      named imitateNearbyMob Lnet/minecraft/entity/passive/ParrotEntity;imitateNearbyMob(Lnet/minecraft/world/World;Lnet/minecraft/entity/Entity;)Z
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official b Lbce;b(Lbuc;Lbai;)Lbaj;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
    • isBreedingItem

      public boolean isBreedingItem(ItemStack stack)
      Overrides:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official n Lbne;n(Lcax;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
    • canSpawn

      public static boolean canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      official c Lbnu;c(Lbbr;Lcgy;Lbcg;Lgt;Lamn;)Z
      intermediary method_20667 Lnet/minecraft/class_1453;method_20667(Lnet/minecraft/class_1299;Lnet/minecraft/class_1936;Lnet/minecraft/class_3730;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      named canSpawn Lnet/minecraft/entity/passive/ParrotEntity;canSpawn(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
    • handleFallDamage

      public boolean handleFallDamage(float fallDistance, float damageMultiplier, DamageSource damageSource)
      Called when an entity falls.

      Flying mobs and mobs immune to fall damage should override this to do nothing. Mobs with reduced fall damage should override this method to apply reduced damage instead. Some entities explode instead of applying fall damage, like TntMinecartEntity.

      Overrides:
      handleFallDamage in class LivingEntity
      Returns:
      whether to play the sound when falling on honey block; false for all entities except horses and llamas
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(FFLbaw;)Z
      intermediary method_5747 Lnet/minecraft/class_1297;method_5747(FFLnet/minecraft/class_1282;)Z
      named handleFallDamage Lnet/minecraft/entity/Entity;handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z
    • fall

      protected void fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
      Called when the entity falls. Flying mobs should override this to do nothing.
      Overrides:
      fall in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(DZLcvo;Lgt;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • canBreedWith

      public boolean canBreedWith(AnimalEntity other)
      Overrides:
      canBreedWith in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbne;a(Lbne;)Z
      intermediary method_6474 Lnet/minecraft/class_1429;method_6474(Lnet/minecraft/class_1429;)Z
      named canBreedWith Lnet/minecraft/entity/passive/AnimalEntity;canBreedWith(Lnet/minecraft/entity/passive/AnimalEntity;)Z
    • createChild

      @Nullable public @Nullable PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      official a Lbbk;a(Lagg;Lbbk;)Lbbk;
      intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
      named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
    • tryAttack

      public boolean tryAttack(Entity target)
      Overrides:
      tryAttack in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      official z Lbcc;z(Lbbn;)Z
      intermediary method_6121 Lnet/minecraft/class_1309;method_6121(Lnet/minecraft/class_1297;)Z
      named tryAttack Lnet/minecraft/entity/LivingEntity;tryAttack(Lnet/minecraft/entity/Entity;)Z
    • getAmbientSound

      @Nullable public @Nullable 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;
    • getRandomSound

      public static SoundEvent getRandomSound(World world, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnu;a(Lcgx;Lamn;)Lajv;
      intermediary method_6583 Lnet/minecraft/class_1453;method_6583(Lnet/minecraft/class_1937;Lnet/minecraft/class_5819;)Lnet/minecraft/class_3414;
      named getRandomSound Lnet/minecraft/entity/passive/ParrotEntity;getRandomSound(Lnet/minecraft/world/World;Lnet/minecraft/util/math/random/Random;)Lnet/minecraft/sound/SoundEvent;
    • getSound

      private static SoundEvent getSound(EntityType<?> imitate)
      Mappings:
      Namespace Name Mixin selector
      official b Lbnu;b(Lbbr;)Lajv;
      intermediary method_6586 Lnet/minecraft/class_1453;method_6586(Lnet/minecraft/class_1299;)Lnet/minecraft/class_3414;
      named getSound Lnet/minecraft/entity/passive/ParrotEntity;getSound(Lnet/minecraft/entity/EntityType;)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;
    • playStepSound

      protected void playStepSound(BlockPos pos, BlockState state)
      Overrides:
      playStepSound in class Entity
      Mappings:
      Namespace Name Mixin selector
      official b Lbbn;b(Lgt;Lcvo;)V
      intermediary method_5712 Lnet/minecraft/class_1297;method_5712(Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named playStepSound Lnet/minecraft/entity/Entity;playStepSound(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • hasWings

      protected 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
    • addFlapEffects

      protected void addFlapEffects()
      Adds the effects of this entity flapping, usually to the world the entity is in.

      The actual flapping logic should be done in Entity.tick() instead.

      This is only called when the entity has wings and the entity has any move effect, from Entity.addAirTravelEffects().

      Overrides:
      addFlapEffects in class Entity
      Mappings:
      Namespace Name Mixin selector
      official aK Lbbn;aK()V
      intermediary method_5801 Lnet/minecraft/class_1297;method_5801()V
      named addFlapEffects Lnet/minecraft/entity/Entity;addFlapEffects()V
    • getSoundPitch

      public float getSoundPitch()
      Overrides:
      getSoundPitch in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official eD Lbcc;eD()F
      intermediary method_6017 Lnet/minecraft/class_1309;method_6017()F
      named getSoundPitch Lnet/minecraft/entity/LivingEntity;getSoundPitch()F
    • getSoundPitch

      public static float getSoundPitch(Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lbnu;a(Lamn;)F
      intermediary method_6580 Lnet/minecraft/class_1453;method_6580(Lnet/minecraft/class_5819;)F
      named getSoundPitch Lnet/minecraft/entity/passive/ParrotEntity;getSoundPitch(Lnet/minecraft/util/math/random/Random;)F
    • 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;
    • isPushable

      public boolean isPushable()
      Returns whether the entity can be pushed by other entities.
      Overrides:
      isPushable in class LivingEntity
      Returns:
      whether the entity can be pushed by other entities
      Mappings:
      Namespace Name Mixin selector
      official bl Lbbn;bl()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
    • pushAway

      protected void pushAway(Entity entity)
      Overrides:
      pushAway in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      official A Lbcc;A(Lbbn;)V
      intermediary method_6087 Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
      named pushAway Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
    • damage

      public boolean damage(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 Entity.isInvulnerableTo(net.minecraft.entity.damage.DamageSource) and return early.

      Overrides:
      damage in class AnimalEntity
      Returns:
      whether the entity was actually damaged
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbbn;a(Lbaw;F)Z
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getVariant

      public int getVariant()
      Mappings:
      Namespace Name Mixin selector
      official fT Lbnu;fT()I
      intermediary method_6584 Lnet/minecraft/class_1453;method_6584()I
      named getVariant Lnet/minecraft/entity/passive/ParrotEntity;getVariant()I
    • setVariant

      public void setVariant(int variant)
      Mappings:
      Namespace Name Mixin selector
      official t Lbnu;t(I)V
      intermediary method_6585 Lnet/minecraft/class_1453;method_6585(I)V
      named setVariant Lnet/minecraft/entity/passive/ParrotEntity;setVariant(I)V
    • initDataTracker

      protected void initDataTracker()
      Initializes data tracker.
      Overrides:
      initDataTracker in class TameableEntity
      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
    • 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 TameableEntity
      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
    • 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 TameableEntity
      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
    • isInAir

      public boolean isInAir()
      Specified by:
      isInAir in interface Flutterer
      Mappings:
      Namespace Name Mixin selector
      official fX Lbnn;fX()Z
      intermediary method_6581 Lnet/minecraft/class_1432;method_6581()Z
      named isInAir Lnet/minecraft/entity/Flutterer;isInAir()Z
    • getLeashOffset

      public Vec3d getLeashOffset()
      Returns the offset from the entity's position where the leash is attached to.

      This is different from Entity.getLeashPos(float); this method is called on the entity which a leash is attached to.

      Overrides:
      getLeashOffset in class Entity
      Returns:
      the offset from the entity's position where the leash is attached to
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official cB Lbbn;cB()Ldwq;
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;