Class ParrotEntity

All Implemented Interfaces:
ComponentsAccess, Attackable, DataTracked, EquipmentHolder, Flutterer, Leashable, Tameable, Targeter, ScoreHolder, Nameable, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint

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

    • VARIANT

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

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

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

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

      public float maxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      named maxWingDeviation Lnet/minecraft/entity/passive/ParrotEntity;maxWingDeviation:F
      intermediary field_6819 Lnet/minecraft/class_1453;field_6819:F
      official cp Lcmz;cp:F
    • lastMaxWingDeviation

      public float lastMaxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      named lastMaxWingDeviation Lnet/minecraft/entity/passive/ParrotEntity;lastMaxWingDeviation:F
      intermediary field_6827 Lnet/minecraft/class_1453;field_6827:F
      official cq Lcmz;cq:F
    • lastFlapProgress

      public float lastFlapProgress
      Mappings:
      Namespace Name Mixin selector
      named lastFlapProgress Lnet/minecraft/entity/passive/ParrotEntity;lastFlapProgress:F
      intermediary field_6829 Lnet/minecraft/class_1453;field_6829:F
      official cr Lcmz;cr:F
    • flapSpeed

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

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

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

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

    • ParrotEntity

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

    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      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/entity/EntityData;
      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_1315;
      official a Lcao;a(Ldnl;Lbxh;Lbzu;Lcbe;)Lcbe;
    • isBaby

      public boolean isBaby()
      Overrides:
      isBaby in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named isBaby Lnet/minecraft/entity/LivingEntity;isBaby()Z
      intermediary method_6109 Lnet/minecraft/class_1309;method_6109()Z
      official g_ Lcam;g_()Z
    • initGoals

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

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

      protected EntityNavigation createNavigation(World world)
      Overrides:
      createNavigation in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named createNavigation Lnet/minecraft/entity/mob/MobEntity;createNavigation(Lnet/minecraft/world/World;)Lnet/minecraft/entity/ai/pathing/EntityNavigation;
      intermediary method_5965 Lnet/minecraft/class_1308;method_5965(Lnet/minecraft/class_1937;)Lnet/minecraft/class_1408;
      official b Lcao;b(Ldmu;)Lcjw;
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcam;e_()V
    • setNearbySongPlaying

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

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

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

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

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

      public boolean isBreedingItem(ItemStack stack)
      Specified by:
      isBreedingItem in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named isBreedingItem Lnet/minecraft/entity/passive/AnimalEntity;isBreedingItem(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_6481 Lnet/minecraft/class_1429;method_6481(Lnet/minecraft/class_1799;)Z
      official i Lcmd;i(Ldcv;)Z
    • canSpawn

      public static boolean canSpawn(EntityType<ParrotEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random)
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official c Lcmz;c(Lbzv;Ldmv;Lbzu;Ljb;Lbck;)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
      Implementation Note:
      If on ground, this calls Block.onLandedUpon(net.minecraft.world.World, net.minecraft.block.BlockState, net.minecraft.util.math.BlockPos, net.minecraft.entity.Entity, double), which can add or reduce fall damage, emits GameEvent.HIT_GROUND, then calls Entity.onLanding(). Otherwise, if heightDifference is negative, it subtracts that value from Entity.fallDistance.
      Mappings:
      Namespace Name Mixin selector
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      official a Lbzm;a(DZLeeb;Ljb;)V
    • canBreedWith

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

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

      @Nullable public @Nullable SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official p Lcao;p()Layy;
    • getRandomSound

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

      private static SoundEvent getSound(EntityType<?> imitate)
      Mappings:
      Namespace Name Mixin selector
      named getSound Lnet/minecraft/entity/passive/ParrotEntity;getSound(Lnet/minecraft/entity/EntityType;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6586 Lnet/minecraft/class_1453;method_6586(Lnet/minecraft/class_1299;)Lnet/minecraft/class_3414;
      official b Lcmz;b(Lbzv;)Layy;
    • getHurtSound

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

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official f_ Lcam;f_()Layy;
    • playStepSound

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

      protected boolean isFlappingWings()
      Returns whether the entity is flapping their wings.

      Entities flapping their wings will call addFlapEffects() inside Entity.addAirTravelEffects().

      Overrides:
      isFlappingWings in class Entity
      Returns:
      whether the entity is flapping their wings
      Mappings:
      Namespace Name Mixin selector
      named isFlappingWings Lnet/minecraft/entity/Entity;isFlappingWings()Z
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      official bd Lbzm;bd()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 TameableShoulderEntity.tick() instead.

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

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

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

      public static float getSoundPitch(Random random)
      Mappings:
      Namespace Name Mixin selector
      named getSoundPitch Lnet/minecraft/entity/passive/ParrotEntity;getSoundPitch(Lnet/minecraft/util/math/random/Random;)F
      intermediary method_6580 Lnet/minecraft/class_1453;method_6580(Lnet/minecraft/class_5819;)F
      official a Lcmz;a(Lbck;)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
      named getSoundCategory Lnet/minecraft/entity/Entity;getSoundCategory()Lnet/minecraft/sound/SoundCategory;
      intermediary method_5634 Lnet/minecraft/class_1297;method_5634()Lnet/minecraft/class_3419;
      official do Lbzm;do()Laza;
    • 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
      named isPushable Lnet/minecraft/entity/Entity;isPushable()Z
      intermediary method_5810 Lnet/minecraft/class_1297;method_5810()Z
      official bL Lbzm;bL()Z
    • pushAway

      protected void pushAway(Entity entity)
      Overrides:
      pushAway in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named pushAway Lnet/minecraft/entity/LivingEntity;pushAway(Lnet/minecraft/entity/Entity;)V
      intermediary method_6087 Lnet/minecraft/class_1309;method_6087(Lnet/minecraft/class_1297;)V
      official E Lcam;E(Lbzm;)V
    • 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.

      Overrides:
      damage in class LivingEntity
      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
    • getVariant

      public ParrotEntity.Variant getVariant()
      Mappings:
      Namespace Name Mixin selector
      named getVariant Lnet/minecraft/entity/passive/ParrotEntity;getVariant()Lnet/minecraft/entity/passive/ParrotEntity$Variant;
      intermediary method_6584 Lnet/minecraft/class_1453;method_6584()Lnet/minecraft/class_1453$class_7989;
      official gV Lcmz;gV()Lcmz$b;
    • setVariant

      private void setVariant(ParrotEntity.Variant variant)
      Mappings:
      Namespace Name Mixin selector
      named setVariant Lnet/minecraft/entity/passive/ParrotEntity;setVariant(Lnet/minecraft/entity/passive/ParrotEntity$Variant;)V
      intermediary method_47848 Lnet/minecraft/class_1453;method_47848(Lnet/minecraft/class_1453$class_7989;)V
      official a Lcmz;a(Lcmz$b;)V
    • get

      @Nullable public <T> T get(ComponentType<? extends T> type)
      Specified by:
      get in interface ComponentsAccess
      Overrides:
      get in class Entity
      Mappings:
      Namespace Name Mixin selector
      named get Lnet/minecraft/component/ComponentsAccess;get(Lnet/minecraft/component/ComponentType;)Ljava/lang/Object;
      intermediary method_58694 Lnet/minecraft/class_9473;method_58694(Lnet/minecraft/class_9331;)Ljava/lang/Object;
      official a Lkl;a(Lkp;)Ljava/lang/Object;
    • copyComponentsFrom

      protected void copyComponentsFrom(ComponentsAccess from)
      Overrides:
      copyComponentsFrom in class Entity
      Mappings:
      Namespace Name Mixin selector
      named copyComponentsFrom Lnet/minecraft/entity/Entity;copyComponentsFrom(Lnet/minecraft/component/ComponentsAccess;)V
      intermediary method_66649 Lnet/minecraft/class_1297;method_66649(Lnet/minecraft/class_9473;)V
      official a Lbzm;a(Lkl;)V
    • setApplicableComponent

      protected <T> boolean setApplicableComponent(ComponentType<T> type, T value)
      Overrides:
      setApplicableComponent in class Entity
      Mappings:
      Namespace Name Mixin selector
      named setApplicableComponent Lnet/minecraft/entity/Entity;setApplicableComponent(Lnet/minecraft/component/ComponentType;Ljava/lang/Object;)Z
      intermediary method_66654 Lnet/minecraft/class_1297;method_66654(Lnet/minecraft/class_9331;Ljava/lang/Object;)Z
      official b Lbzm;b(Lkp;Ljava/lang/Object;)Z
    • initDataTracker

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

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class TameableEntity
      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)
      Overrides:
      readCustomData in class TameableEntity
      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
    • isInAir

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

      protected boolean canTeleportOntoLeaves()
      Overrides:
      canTeleportOntoLeaves in class TameableEntity
      Mappings:
      Namespace Name Mixin selector
      named canTeleportOntoLeaves Lnet/minecraft/entity/passive/TameableEntity;canTeleportOntoLeaves()Z
      intermediary method_60716 Lnet/minecraft/class_1321;method_60716()Z
      official gL Lcbi;gL()Z
    • getLeashOffset

      public Vec3d getLeashOffset()
      Specified by:
      getLeashOffset in interface Leashable
      Mappings:
      Namespace Name Mixin selector
      named getLeashOffset Lnet/minecraft/entity/Leashable;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
      intermediary method_29919 Lnet/minecraft/class_9817;method_29919()Lnet/minecraft/class_243;
      official F Lcak;F()Lfis;