Class ChickenEntity

All Implemented Interfaces:
Attackable, DataTracked, EquipmentHolder, Targeter, ScoreHolder, CommandOutput, Nameable, EntityLike

public class ChickenEntity extends AnimalEntity
Mappings:
Namespace Name
named net/minecraft/entity/passive/ChickenEntity
intermediary net/minecraft/class_1428
official cfm
  • Field Details

    • BABY_BASE_DIMENSIONS

      private static final EntityDimensions BABY_BASE_DIMENSIONS
      Mappings:
      Namespace Name Mixin selector
      named BABY_BASE_DIMENSIONS Lnet/minecraft/entity/passive/ChickenEntity;BABY_BASE_DIMENSIONS:Lnet/minecraft/entity/EntityDimensions;
      intermediary field_47770 Lnet/minecraft/class_1428;field_47770:Lnet/minecraft/class_4048;
      official cg Lcfm;cg:Lbsz;
    • flapProgress

      public float flapProgress
      Mappings:
      Namespace Name Mixin selector
      named flapProgress Lnet/minecraft/entity/passive/ChickenEntity;flapProgress:F
      intermediary field_6741 Lnet/minecraft/class_1428;field_6741:F
      official bY Lcfm;bY:F
    • maxWingDeviation

      public float maxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      named maxWingDeviation Lnet/minecraft/entity/passive/ChickenEntity;maxWingDeviation:F
      intermediary field_6743 Lnet/minecraft/class_1428;field_6743:F
      official bZ Lcfm;bZ:F
    • prevMaxWingDeviation

      public float prevMaxWingDeviation
      Mappings:
      Namespace Name Mixin selector
      named prevMaxWingDeviation Lnet/minecraft/entity/passive/ChickenEntity;prevMaxWingDeviation:F
      intermediary field_6738 Lnet/minecraft/class_1428;field_6738:F
      official cb Lcfm;cb:F
    • prevFlapProgress

      public float prevFlapProgress
      Mappings:
      Namespace Name Mixin selector
      named prevFlapProgress Lnet/minecraft/entity/passive/ChickenEntity;prevFlapProgress:F
      intermediary field_6736 Lnet/minecraft/class_1428;field_6736:F
      official cc Lcfm;cc:F
    • flapSpeed

      public float flapSpeed
      Mappings:
      Namespace Name Mixin selector
      named flapSpeed Lnet/minecraft/entity/passive/ChickenEntity;flapSpeed:F
      intermediary field_6737 Lnet/minecraft/class_1428;field_6737:F
      official cd Lcfm;cd:F
    • field_28639

      private float field_28639
      Mappings:
      Namespace Name Mixin selector
      named field_28639 Lnet/minecraft/entity/passive/ChickenEntity;field_28639:F
      intermediary field_28639 Lnet/minecraft/class_1428;field_28639:F
      official ch Lcfm;ch:F
    • eggLayTime

      public int eggLayTime
      Mappings:
      Namespace Name Mixin selector
      named eggLayTime Lnet/minecraft/entity/passive/ChickenEntity;eggLayTime:I
      intermediary field_6739 Lnet/minecraft/class_1428;field_6739:I
      official ce Lcfm;ce:I
    • hasJockey

      public boolean hasJockey
      Mappings:
      Namespace Name Mixin selector
      named hasJockey Lnet/minecraft/entity/passive/ChickenEntity;hasJockey:Z
      intermediary field_6740 Lnet/minecraft/class_1428;field_6740:Z
      official cf Lcfm;cf:Z
  • Constructor Details

    • ChickenEntity

      public ChickenEntity(EntityType<? extends ChickenEntity> 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> Lbsw;<init>(Lbtc;Ldca;)V
  • Method Details

    • 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 z Lbtt;z()V
    • getBaseDimensions

      public EntityDimensions getBaseDimensions(EntityPose pose)
      Overrides:
      getBaseDimensions in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getBaseDimensions Lnet/minecraft/entity/LivingEntity;getBaseDimensions(Lnet/minecraft/entity/EntityPose;)Lnet/minecraft/entity/EntityDimensions;
      intermediary method_55694 Lnet/minecraft/class_1309;method_55694(Lnet/minecraft/class_4050;)Lnet/minecraft/class_4048;
      official e Lbtr;e(Lbud;)Lbsz;
    • createChickenAttributes

      public static DefaultAttributeContainer.Builder createChickenAttributes()
      Mappings:
      Namespace Name Mixin selector
      named createChickenAttributes Lnet/minecraft/entity/passive/ChickenEntity;createChickenAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
      intermediary method_26882 Lnet/minecraft/class_1428;method_26882()Lnet/minecraft/class_5132$class_5133;
      official s Lcfm;s()Lbuy$a;
    • 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 n_ Lbtr;n_()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 aV Lbsw;aV()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 MobEntity.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 aU Lbsw;aU()V
    • getAmbientSound

      protected 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 v Lbtt;v()Lavz;
    • 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 d Lbtr;d(Lbrp;)Lavz;
    • 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 o_ Lbtr;o_()Lavz;
    • 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 Lbsw;b(Liz;Ldse;)V
    • createChild

      @Nullable public @Nullable ChickenEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/ChickenEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/ChickenEntity;
      intermediary method_6471 Lnet/minecraft/class_1428;method_6471(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1428;
      official b Lcfm;b(Larf;Lbsq;)Lcfm;
    • 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 o Lcfh;o(Lcur;)Z
    • getXpToDrop

      public int getXpToDrop()
      Called when this entity is killed and returns the amount of experience to drop.
      Overrides:
      getXpToDrop in class AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named getXpToDrop Lnet/minecraft/entity/LivingEntity;getXpToDrop()I
      intermediary method_6110 Lnet/minecraft/class_1309;method_6110()I
      official ej Lbtr;ej()I
    • 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.

      Overrides:
      readCustomDataFromNbt in class AnimalEntity
      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 Lbsw;a(Lus;)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.

      Overrides:
      writeCustomDataToNbt in class AnimalEntity
      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 Lbsw;b(Lus;)V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lbtt;h(D)Z
    • updatePassengerPosition

      protected void updatePassengerPosition(Entity passenger, Entity.PositionUpdater positionUpdater)
      Overrides:
      updatePassengerPosition in class Entity
      Mappings:
      Namespace Name Mixin selector
      named updatePassengerPosition Lnet/minecraft/entity/Entity;updatePassengerPosition(Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity$PositionUpdater;)V
      intermediary method_5865 Lnet/minecraft/class_1297;method_5865(Lnet/minecraft/class_1297;Lnet/minecraft/class_1297$class_4738;)V
      official a Lbsw;a(Lbsw;Lbsw$a;)V
    • hasJockey

      public boolean hasJockey()
      Mappings:
      Namespace Name Mixin selector
      named hasJockey Lnet/minecraft/entity/passive/ChickenEntity;hasJockey()Z
      intermediary method_6472 Lnet/minecraft/class_1428;method_6472()Z
      official u Lcfm;u()Z
    • setHasJockey

      public void setHasJockey(boolean hasJockey)
      Mappings:
      Namespace Name Mixin selector
      named setHasJockey Lnet/minecraft/entity/passive/ChickenEntity;setHasJockey(Z)V
      intermediary method_6473 Lnet/minecraft/class_1428;method_6473(Z)V
      official w Lcfm;w(Z)V