Class BeeEntity

All Implemented Interfaces:
Attackable, Flutterer, Angerable, Targeter, CommandOutput, Nameable, EntityLike

public class BeeEntity extends AnimalEntity implements Angerable, Flutterer
Mappings:
Namespace Name
intermediary net/minecraft/class_4466
official brk
named net/minecraft/entity/passive/BeeEntity
  • Field Details

    • field_30271

      public static final float field_30271
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30271 Lnet/minecraft/class_4466;field_30271:F
      official bT Lbrk;bT:F
      named field_30271 Lnet/minecraft/entity/passive/BeeEntity;field_30271:F
    • field_28638

      public static final int field_28638
      Mappings:
      Namespace Name Mixin selector
      intermediary field_28638 Lnet/minecraft/class_4466;field_28638:I
      official bU Lbrk;bU:I
      named field_28638 Lnet/minecraft/entity/passive/BeeEntity;field_28638:I
    • BEE_FLAGS

      private static final TrackedData<Byte> BEE_FLAGS
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20353 Lnet/minecraft/class_4466;field_20353:Lnet/minecraft/class_2940;
      official cd Lbrk;cd:Laby;
      named BEE_FLAGS Lnet/minecraft/entity/passive/BeeEntity;BEE_FLAGS:Lnet/minecraft/entity/data/TrackedData;
    • ANGER

      private static final TrackedData<Integer> ANGER
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20354 Lnet/minecraft/class_4466;field_20354:Lnet/minecraft/class_2940;
      official ce Lbrk;ce:Laby;
      named ANGER Lnet/minecraft/entity/passive/BeeEntity;ANGER:Lnet/minecraft/entity/data/TrackedData;
    • NEAR_TARGET_FLAG

      private static final int NEAR_TARGET_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30281 Lnet/minecraft/class_4466;field_30281:I
      official cf Lbrk;cf:I
      named NEAR_TARGET_FLAG Lnet/minecraft/entity/passive/BeeEntity;NEAR_TARGET_FLAG:I
    • HAS_STUNG_FLAG

      private static final int HAS_STUNG_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30282 Lnet/minecraft/class_4466;field_30282:I
      official cg Lbrk;cg:I
      named HAS_STUNG_FLAG Lnet/minecraft/entity/passive/BeeEntity;HAS_STUNG_FLAG:I
    • HAS_NECTAR_FLAG

      private static final int HAS_NECTAR_FLAG
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30283 Lnet/minecraft/class_4466;field_30283:I
      official ch Lbrk;ch:I
      named HAS_NECTAR_FLAG Lnet/minecraft/entity/passive/BeeEntity;HAS_NECTAR_FLAG:I
    • MAX_LIFETIME_AFTER_STINGING

      private static final int MAX_LIFETIME_AFTER_STINGING
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30284 Lnet/minecraft/class_4466;field_30284:I
      official ci Lbrk;ci:I
      named MAX_LIFETIME_AFTER_STINGING Lnet/minecraft/entity/passive/BeeEntity;MAX_LIFETIME_AFTER_STINGING:I
    • FLOWER_NAVIGATION_START_TICKS

      private static final int FLOWER_NAVIGATION_START_TICKS
      A bee will start moving to a flower once this time in ticks has passed from a pollination.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30285 Lnet/minecraft/class_4466;field_30285:I
      official cj Lbrk;cj:I
      named FLOWER_NAVIGATION_START_TICKS Lnet/minecraft/entity/passive/BeeEntity;FLOWER_NAVIGATION_START_TICKS:I
    • POLLINATION_FAIL_TICKS

      private static final int POLLINATION_FAIL_TICKS
      The duration in ticks when a bee's pollination is considered failed.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30286 Lnet/minecraft/class_4466;field_30286:I
      official ck Lbrk;ck:I
      named POLLINATION_FAIL_TICKS Lnet/minecraft/entity/passive/BeeEntity;POLLINATION_FAIL_TICKS:I
    • field_30287

      private static final int field_30287
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30287 Lnet/minecraft/class_4466;field_30287:I
      official cl Lbrk;cl:I
      named field_30287 Lnet/minecraft/entity/passive/BeeEntity;field_30287:I
    • MAX_POLLINATED_CROPS

      private static final int MAX_POLLINATED_CROPS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30288 Lnet/minecraft/class_4466;field_30288:I
      official cm Lbrk;cm:I
      named MAX_POLLINATED_CROPS Lnet/minecraft/entity/passive/BeeEntity;MAX_POLLINATED_CROPS:I
    • NORMAL_DIFFICULTY_STING_POISON_DURATION

      private static final int NORMAL_DIFFICULTY_STING_POISON_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30289 Lnet/minecraft/class_4466;field_30289:I
      official cn Lbrk;cn:I
      named NORMAL_DIFFICULTY_STING_POISON_DURATION Lnet/minecraft/entity/passive/BeeEntity;NORMAL_DIFFICULTY_STING_POISON_DURATION:I
    • HARD_DIFFICULTY_STING_POISON_DURATION

      private static final int HARD_DIFFICULTY_STING_POISON_DURATION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30290 Lnet/minecraft/class_4466;field_30290:I
      official co Lbrk;co:I
      named HARD_DIFFICULTY_STING_POISON_DURATION Lnet/minecraft/entity/passive/BeeEntity;HARD_DIFFICULTY_STING_POISON_DURATION:I
    • TOO_FAR_DISTANCE

      private static final int TOO_FAR_DISTANCE
      The minimum distance that bees lose their hive or flower position at.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30291 Lnet/minecraft/class_4466;field_30291:I
      official cp Lbrk;cp:I
      named TOO_FAR_DISTANCE Lnet/minecraft/entity/passive/BeeEntity;TOO_FAR_DISTANCE:I
    • field_30292

      private static final int field_30292
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30292 Lnet/minecraft/class_4466;field_30292:I
      official cq Lbrk;cq:I
      named field_30292 Lnet/minecraft/entity/passive/BeeEntity;field_30292:I
    • MIN_HIVE_RETURN_DISTANCE

      private static final int MIN_HIVE_RETURN_DISTANCE
      The minimum distance that bees will immediately return to their hive at.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30293 Lnet/minecraft/class_4466;field_30293:I
      official cr Lbrk;cr:I
      named MIN_HIVE_RETURN_DISTANCE Lnet/minecraft/entity/passive/BeeEntity;MIN_HIVE_RETURN_DISTANCE:I
    • field_30294

      private static final int field_30294
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30294 Lnet/minecraft/class_4466;field_30294:I
      official cs Lbrk;cs:I
      named field_30294 Lnet/minecraft/entity/passive/BeeEntity;field_30294:I
    • CROPS_GROWN_SINCE_POLLINATION_KEY

      public static final String CROPS_GROWN_SINCE_POLLINATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30272 Lnet/minecraft/class_4466;field_30272:Ljava/lang/String;
      official bW Lbrk;bW:Ljava/lang/String;
      named CROPS_GROWN_SINCE_POLLINATION_KEY Lnet/minecraft/entity/passive/BeeEntity;CROPS_GROWN_SINCE_POLLINATION_KEY:Ljava/lang/String;
    • CANNOT_ENTER_HIVE_TICKS_KEY

      public static final String CANNOT_ENTER_HIVE_TICKS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30273 Lnet/minecraft/class_4466;field_30273:Ljava/lang/String;
      official bX Lbrk;bX:Ljava/lang/String;
      named CANNOT_ENTER_HIVE_TICKS_KEY Lnet/minecraft/entity/passive/BeeEntity;CANNOT_ENTER_HIVE_TICKS_KEY:Ljava/lang/String;
    • TICKS_SINCE_POLLINATION_KEY

      public static final String TICKS_SINCE_POLLINATION_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30276 Lnet/minecraft/class_4466;field_30276:Ljava/lang/String;
      official bY Lbrk;bY:Ljava/lang/String;
      named TICKS_SINCE_POLLINATION_KEY Lnet/minecraft/entity/passive/BeeEntity;TICKS_SINCE_POLLINATION_KEY:Ljava/lang/String;
    • HAS_STUNG_KEY

      public static final String HAS_STUNG_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30277 Lnet/minecraft/class_4466;field_30277:Ljava/lang/String;
      official bZ Lbrk;bZ:Ljava/lang/String;
      named HAS_STUNG_KEY Lnet/minecraft/entity/passive/BeeEntity;HAS_STUNG_KEY:Ljava/lang/String;
    • HAS_NECTAR_KEY

      public static final String HAS_NECTAR_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30278 Lnet/minecraft/class_4466;field_30278:Ljava/lang/String;
      official ca Lbrk;ca:Ljava/lang/String;
      named HAS_NECTAR_KEY Lnet/minecraft/entity/passive/BeeEntity;HAS_NECTAR_KEY:Ljava/lang/String;
    • FLOWER_POS_KEY

      public static final String FLOWER_POS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30279 Lnet/minecraft/class_4466;field_30279:Ljava/lang/String;
      official cb Lbrk;cb:Ljava/lang/String;
      named FLOWER_POS_KEY Lnet/minecraft/entity/passive/BeeEntity;FLOWER_POS_KEY:Ljava/lang/String;
    • HIVE_POS_KEY

      public static final String HIVE_POS_KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30280 Lnet/minecraft/class_4466;field_30280:Ljava/lang/String;
      official cc Lbrk;cc:Ljava/lang/String;
      named HIVE_POS_KEY Lnet/minecraft/entity/passive/BeeEntity;HIVE_POS_KEY:Ljava/lang/String;
    • ANGER_TIME_RANGE

      private static final UniformIntProvider ANGER_TIME_RANGE
      Mappings:
      Namespace Name Mixin selector
      intermediary field_25363 Lnet/minecraft/class_4466;field_25363:Lnet/minecraft/class_6019;
      official ct Lbrk;ct:Lbdh;
      named ANGER_TIME_RANGE Lnet/minecraft/entity/passive/BeeEntity;ANGER_TIME_RANGE:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
    • field_30274

      private static final int field_30274
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30274 Lnet/minecraft/class_4466;field_30274:I
      official cB Lbrk;cB:I
      named field_30274 Lnet/minecraft/entity/passive/BeeEntity;field_30274:I
    • field_30275

      private static final int field_30275
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary field_30275 Lnet/minecraft/class_4466;field_30275:I
      official cD Lbrk;cD:I
      named field_30275 Lnet/minecraft/entity/passive/BeeEntity;field_30275:I
    • angryAt

      @Nullable private @Nullable UUID angryAt
      Mappings:
      Namespace Name Mixin selector
      intermediary field_25364 Lnet/minecraft/class_4466;field_25364:Ljava/util/UUID;
      official cu Lbrk;cu:Ljava/util/UUID;
      named angryAt Lnet/minecraft/entity/passive/BeeEntity;angryAt:Ljava/util/UUID;
    • currentPitch

      private float currentPitch
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20356 Lnet/minecraft/class_4466;field_20356:F
      official cv Lbrk;cv:F
      named currentPitch Lnet/minecraft/entity/passive/BeeEntity;currentPitch:F
    • lastPitch

      private float lastPitch
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20357 Lnet/minecraft/class_4466;field_20357:F
      official cw Lbrk;cw:F
      named lastPitch Lnet/minecraft/entity/passive/BeeEntity;lastPitch:F
    • ticksSinceSting

      private int ticksSinceSting
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20358 Lnet/minecraft/class_4466;field_20358:I
      official cx Lbrk;cx:I
      named ticksSinceSting Lnet/minecraft/entity/passive/BeeEntity;ticksSinceSting:I
    • ticksSincePollination

      int ticksSincePollination
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20359 Lnet/minecraft/class_4466;field_20359:I
      official cy Lbrk;cy:I
      named ticksSincePollination Lnet/minecraft/entity/passive/BeeEntity;ticksSincePollination:I
    • cannotEnterHiveTicks

      private int cannotEnterHiveTicks
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20360 Lnet/minecraft/class_4466;field_20360:I
      official cz Lbrk;cz:I
      named cannotEnterHiveTicks Lnet/minecraft/entity/passive/BeeEntity;cannotEnterHiveTicks:I
    • cropsGrownSincePollination

      private int cropsGrownSincePollination
      Mappings:
      Namespace Name Mixin selector
      intermediary field_20361 Lnet/minecraft/class_4466;field_20361:I
      official cA Lbrk;cA:I
      named cropsGrownSincePollination Lnet/minecraft/entity/passive/BeeEntity;cropsGrownSincePollination:I
    • ticksLeftToFindHive

      int ticksLeftToFindHive
      Mappings:
      Namespace Name Mixin selector
      intermediary field_21643 Lnet/minecraft/class_4466;field_21643:I
      official cC Lbrk;cC:I
      named ticksLeftToFindHive Lnet/minecraft/entity/passive/BeeEntity;ticksLeftToFindHive:I
    • ticksUntilCanPollinate

      int ticksUntilCanPollinate
      Mappings:
      Namespace Name Mixin selector
      intermediary field_21644 Lnet/minecraft/class_4466;field_21644:I
      official cE Lbrk;cE:I
      named ticksUntilCanPollinate Lnet/minecraft/entity/passive/BeeEntity;ticksUntilCanPollinate:I
    • flowerPos

      Mappings:
      Namespace Name Mixin selector
      intermediary field_20362 Lnet/minecraft/class_4466;field_20362:Lnet/minecraft/class_2338;
      official cF Lbrk;cF:Lgu;
      named flowerPos Lnet/minecraft/entity/passive/BeeEntity;flowerPos:Lnet/minecraft/util/math/BlockPos;
    • hivePos

      Mappings:
      Namespace Name Mixin selector
      intermediary field_20363 Lnet/minecraft/class_4466;field_20363:Lnet/minecraft/class_2338;
      official cG Lbrk;cG:Lgu;
      named hivePos Lnet/minecraft/entity/passive/BeeEntity;hivePos:Lnet/minecraft/util/math/BlockPos;
    • pollinateGoal

      Mappings:
      Namespace Name Mixin selector
      intermediary field_21079 Lnet/minecraft/class_4466;field_21079:Lnet/minecraft/class_4466$class_4478;
      official cH Lbrk;cH:Lbrk$k;
      named pollinateGoal Lnet/minecraft/entity/passive/BeeEntity;pollinateGoal:Lnet/minecraft/entity/passive/BeeEntity$PollinateGoal;
    • moveToHiveGoal

      BeeEntity.MoveToHiveGoal moveToHiveGoal
      Mappings:
      Namespace Name Mixin selector
      intermediary field_21645 Lnet/minecraft/class_4466;field_21645:Lnet/minecraft/class_4466$class_4472;
      official cI Lbrk;cI:Lbrk$e;
      named moveToHiveGoal Lnet/minecraft/entity/passive/BeeEntity;moveToHiveGoal:Lnet/minecraft/entity/passive/BeeEntity$MoveToHiveGoal;
    • moveToFlowerGoal

      private BeeEntity.MoveToFlowerGoal moveToFlowerGoal
      Mappings:
      Namespace Name Mixin selector
      intermediary field_21646 Lnet/minecraft/class_4466;field_21646:Lnet/minecraft/class_4466$class_4473;
      official cJ Lbrk;cJ:Lbrk$f;
      named moveToFlowerGoal Lnet/minecraft/entity/passive/BeeEntity;moveToFlowerGoal:Lnet/minecraft/entity/passive/BeeEntity$MoveToFlowerGoal;
    • ticksInsideWater

      private int ticksInsideWater
      Mappings:
      Namespace Name Mixin selector
      intermediary field_21509 Lnet/minecraft/class_4466;field_21509:I
      official cK Lbrk;cK:I
      named ticksInsideWater Lnet/minecraft/entity/passive/BeeEntity;ticksInsideWater:I
  • Constructor Details

    • BeeEntity

      public BeeEntity(EntityType<? extends BeeEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbfh;<init>(Lbfl;Lcmk;)V
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
  • Method Details

    • initDataTracker

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

      public float getPathfindingFavor(BlockPos pos, WorldView world)
      Overrides:
      getPathfindingFavor in class AnimalEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_6144 Lnet/minecraft/class_1314;method_6144(Lnet/minecraft/class_2338;Lnet/minecraft/class_4538;)F
      official a Lbgg;a(Lgu;Lcmn;)F
      named getPathfindingFavor Lnet/minecraft/entity/mob/PathAwareEntity;getPathfindingFavor(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/WorldView;)F
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official w Lbfz;w()V
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbfh;b(Lqr;)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 AnimalEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbfh;a(Lqr;)V
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • tryAttack

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

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

      private void addParticle(World world, double lastX, double x, double lastZ, double z, double y, ParticleEffect effect)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21769 Lnet/minecraft/class_4466;method_21769(Lnet/minecraft/class_1937;DDDDDLnet/minecraft/class_2394;)V
      official a Lbrk;a(Lcmk;DDDDDLit;)V
      named addParticle Lnet/minecraft/entity/passive/BeeEntity;addParticle(Lnet/minecraft/world/World;DDDDDLnet/minecraft/particle/ParticleEffect;)V
    • startMovingTo

      void startMovingTo(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23987 Lnet/minecraft/class_4466;method_23987(Lnet/minecraft/class_2338;)V
      official j Lbrk;j(Lgu;)V
      named startMovingTo Lnet/minecraft/entity/passive/BeeEntity;startMovingTo(Lnet/minecraft/util/math/BlockPos;)V
    • getFlowerPos

      @Nullable public @Nullable BlockPos getFlowerPos()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21778 Lnet/minecraft/class_4466;method_21778()Lnet/minecraft/class_2338;
      official p Lbrk;p()Lgu;
      named getFlowerPos Lnet/minecraft/entity/passive/BeeEntity;getFlowerPos()Lnet/minecraft/util/math/BlockPos;
    • hasFlower

      public boolean hasFlower()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21779 Lnet/minecraft/class_4466;method_21779()Z
      official q Lbrk;q()Z
      named hasFlower Lnet/minecraft/entity/passive/BeeEntity;hasFlower()Z
    • setFlowerPos

      public void setFlowerPos(BlockPos flowerPos)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21797 Lnet/minecraft/class_4466;method_21797(Lnet/minecraft/class_2338;)V
      official i Lbrk;i(Lgu;)V
      named setFlowerPos Lnet/minecraft/entity/passive/BeeEntity;setFlowerPos(Lnet/minecraft/util/math/BlockPos;)V
    • getMoveGoalTicks

      public int getMoveGoalTicks()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_35161 Lnet/minecraft/class_4466;method_35161()I
      official t Lbrk;t()I
      named getMoveGoalTicks Lnet/minecraft/entity/passive/BeeEntity;getMoveGoalTicks()I
    • getPossibleHives

      public List<BlockPos> getPossibleHives()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_35162 Lnet/minecraft/class_4466;method_35162()Ljava/util/List;
      official fX Lbrk;fX()Ljava/util/List;
      named getPossibleHives Lnet/minecraft/entity/passive/BeeEntity;getPossibleHives()Ljava/util/List;
    • failedPollinatingTooLong

      private boolean failedPollinatingTooLong()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23983 Lnet/minecraft/class_4466;method_23983()Z
      official gm Lbrk;gm()Z
      named failedPollinatingTooLong Lnet/minecraft/entity/passive/BeeEntity;failedPollinatingTooLong()Z
    • canEnterHive

      boolean canEnterHive()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21789 Lnet/minecraft/class_4466;method_21789()Z
      official gn Lbrk;gn()Z
      named canEnterHive Lnet/minecraft/entity/passive/BeeEntity;canEnterHive()Z
    • setCannotEnterHiveTicks

      public void setCannotEnterHiveTicks(int cannotEnterHiveTicks)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21807 Lnet/minecraft/class_4466;method_21807(I)V
      official t Lbrk;t(I)V
      named setCannotEnterHiveTicks Lnet/minecraft/entity/passive/BeeEntity;setCannotEnterHiveTicks(I)V
    • getBodyPitch

      public float getBodyPitch(float tickDelta)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21811 Lnet/minecraft/class_4466;method_21811(F)F
      official D Lbrk;D(F)F
      named getBodyPitch Lnet/minecraft/entity/passive/BeeEntity;getBodyPitch(F)F
    • updateBodyPitch

      private void updateBodyPitch()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21790 Lnet/minecraft/class_4466;method_21790()V
      official go Lbrk;go()V
      named updateBodyPitch Lnet/minecraft/entity/passive/BeeEntity;updateBodyPitch()V
    • mobTick

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

      public void resetPollinationTicks()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21780 Lnet/minecraft/class_4466;method_21780()V
      official gd Lbrk;gd()V
      named resetPollinationTicks Lnet/minecraft/entity/passive/BeeEntity;resetPollinationTicks()V
    • isHiveNearFire

      private boolean isHiveNearFire()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23984 Lnet/minecraft/class_4466;method_23984()Z
      official gp Lbrk;gp()Z
      named isHiveNearFire Lnet/minecraft/entity/passive/BeeEntity;isHiveNearFire()Z
    • getAngerTime

      public int getAngerTime()
      Specified by:
      getAngerTime in interface Angerable
      Mappings:
      Namespace Name Mixin selector
      intermediary method_29507 Lnet/minecraft/class_5354;method_29507()I
      official a Lbge;a()I
      named getAngerTime Lnet/minecraft/entity/mob/Angerable;getAngerTime()I
    • setAngerTime

      public void setAngerTime(int angerTime)
      Specified by:
      setAngerTime in interface Angerable
      Mappings:
      Namespace Name Mixin selector
      intermediary method_29514 Lnet/minecraft/class_5354;method_29514(I)V
      official a Lbge;a(I)V
      named setAngerTime Lnet/minecraft/entity/mob/Angerable;setAngerTime(I)V
    • getAngryAt

      @Nullable public @Nullable UUID getAngryAt()
      Specified by:
      getAngryAt in interface Angerable
      Mappings:
      Namespace Name Mixin selector
      intermediary method_29508 Lnet/minecraft/class_5354;method_29508()Ljava/util/UUID;
      official b Lbge;b()Ljava/util/UUID;
      named getAngryAt Lnet/minecraft/entity/mob/Angerable;getAngryAt()Ljava/util/UUID;
    • setAngryAt

      public void setAngryAt(@Nullable @Nullable UUID angryAt)
      Specified by:
      setAngryAt in interface Angerable
      Mappings:
      Namespace Name Mixin selector
      intermediary method_29513 Lnet/minecraft/class_5354;method_29513(Ljava/util/UUID;)V
      official a Lbge;a(Ljava/util/UUID;)V
      named setAngryAt Lnet/minecraft/entity/mob/Angerable;setAngryAt(Ljava/util/UUID;)V
    • chooseRandomAngerTime

      public void chooseRandomAngerTime()
      Specified by:
      chooseRandomAngerTime in interface Angerable
      Mappings:
      Namespace Name Mixin selector
      intermediary method_29509 Lnet/minecraft/class_5354;method_29509()V
      official c Lbge;c()V
      named chooseRandomAngerTime Lnet/minecraft/entity/mob/Angerable;chooseRandomAngerTime()V
    • doesHiveHaveSpace

      private boolean doesHiveHaveSpace(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23988 Lnet/minecraft/class_4466;method_23988(Lnet/minecraft/class_2338;)Z
      official k Lbrk;k(Lgu;)Z
      named doesHiveHaveSpace Lnet/minecraft/entity/passive/BeeEntity;doesHiveHaveSpace(Lnet/minecraft/util/math/BlockPos;)Z
    • hasHive

      public boolean hasHive()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21791 Lnet/minecraft/class_4466;method_21791()Z
      official ge Lbrk;ge()Z
      named hasHive Lnet/minecraft/entity/passive/BeeEntity;hasHive()Z
    • getHivePos

      @Nullable public @Nullable BlockPos getHivePos()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23884 Lnet/minecraft/class_4466;method_23884()Lnet/minecraft/class_2338;
      official gf Lbrk;gf()Lgu;
      named getHivePos Lnet/minecraft/entity/passive/BeeEntity;getHivePos()Lnet/minecraft/util/math/BlockPos;
    • getGoalSelector

      public GoalSelector getGoalSelector()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_35163 Lnet/minecraft/class_4466;method_35163()Lnet/minecraft/class_1355;
      official gg Lbrk;gg()Lbmu;
      named getGoalSelector Lnet/minecraft/entity/passive/BeeEntity;getGoalSelector()Lnet/minecraft/entity/ai/goal/GoalSelector;
    • sendAiDebugData

      protected void sendAiDebugData()
      Overrides:
      sendAiDebugData in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_18409 Lnet/minecraft/class_1308;method_18409()V
      official U Lbfz;U()V
      named sendAiDebugData Lnet/minecraft/entity/mob/MobEntity;sendAiDebugData()V
    • getCropsGrownSincePollination

      int getCropsGrownSincePollination()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21792 Lnet/minecraft/class_4466;method_21792()I
      official gq Lbrk;gq()I
      named getCropsGrownSincePollination Lnet/minecraft/entity/passive/BeeEntity;getCropsGrownSincePollination()I
    • resetCropCounter

      private void resetCropCounter()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21783 Lnet/minecraft/class_4466;method_21783()V
      official gr Lbrk;gr()V
      named resetCropCounter Lnet/minecraft/entity/passive/BeeEntity;resetCropCounter()V
    • addCropCounter

      void addCropCounter()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21793 Lnet/minecraft/class_4466;method_21793()V
      official gs Lbrk;gs()V
      named addCropCounter Lnet/minecraft/entity/passive/BeeEntity;addCropCounter()V
    • tickMovement

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

      boolean isHiveValid()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21794 Lnet/minecraft/class_4466;method_21794()Z
      official gt Lbrk;gt()Z
      named isHiveValid Lnet/minecraft/entity/passive/BeeEntity;isHiveValid()Z
    • hasNectar

      public boolean hasNectar()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21784 Lnet/minecraft/class_4466;method_21784()Z
      official gh Lbrk;gh()Z
      named hasNectar Lnet/minecraft/entity/passive/BeeEntity;hasNectar()Z
    • setHasNectar

      void setHasNectar(boolean hasNectar)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21805 Lnet/minecraft/class_4466;method_21805(Z)V
      official x Lbrk;x(Z)V
      named setHasNectar Lnet/minecraft/entity/passive/BeeEntity;setHasNectar(Z)V
    • hasStung

      public boolean hasStung()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21785 Lnet/minecraft/class_4466;method_21785()Z
      official gi Lbrk;gi()Z
      named hasStung Lnet/minecraft/entity/passive/BeeEntity;hasStung()Z
    • setHasStung

      private void setHasStung(boolean hasStung)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21806 Lnet/minecraft/class_4466;method_21806(Z)V
      official y Lbrk;y(Z)V
      named setHasStung Lnet/minecraft/entity/passive/BeeEntity;setHasStung(Z)V
    • isNearTarget

      private boolean isNearTarget()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21786 Lnet/minecraft/class_4466;method_21786()Z
      official gu Lbrk;gu()Z
      named isNearTarget Lnet/minecraft/entity/passive/BeeEntity;isNearTarget()Z
    • setNearTarget

      private void setNearTarget(boolean nearTarget)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21808 Lnet/minecraft/class_4466;method_21808(Z)V
      official z Lbrk;z(Z)V
      named setNearTarget Lnet/minecraft/entity/passive/BeeEntity;setNearTarget(Z)V
    • isTooFar

      boolean isTooFar(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23990 Lnet/minecraft/class_4466;method_23990(Lnet/minecraft/class_2338;)Z
      official l Lbrk;l(Lgu;)Z
      named isTooFar Lnet/minecraft/entity/passive/BeeEntity;isTooFar(Lnet/minecraft/util/math/BlockPos;)Z
    • setBeeFlag

      private void setBeeFlag(int bit, boolean value)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21775 Lnet/minecraft/class_4466;method_21775(IZ)V
      official d Lbrk;d(IZ)V
      named setBeeFlag Lnet/minecraft/entity/passive/BeeEntity;setBeeFlag(IZ)V
    • getBeeFlag

      private boolean getBeeFlag(int location)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21812 Lnet/minecraft/class_4466;method_21812(I)Z
      official u Lbrk;u(I)Z
      named getBeeFlag Lnet/minecraft/entity/passive/BeeEntity;getBeeFlag(I)Z
    • createBeeAttributes

      public static DefaultAttributeContainer.Builder createBeeAttributes()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_26880 Lnet/minecraft/class_4466;method_26880()Lnet/minecraft/class_5132$class_5133;
      official gj Lbrk;gj()Lbhd$a;
      named createBeeAttributes Lnet/minecraft/entity/passive/BeeEntity;createBeeAttributes()Lnet/minecraft/entity/attribute/DefaultAttributeContainer$Builder;
    • createNavigation

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

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

      boolean isFlowers(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23992 Lnet/minecraft/class_4466;method_23992(Lnet/minecraft/class_2338;)Z
      official m Lbrk;m(Lgu;)Z
      named isFlowers Lnet/minecraft/entity/passive/BeeEntity;isFlowers(Lnet/minecraft/util/math/BlockPos;)Z
    • playStepSound

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

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official r Lbfz;r()Lamg;
      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
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official d Lbfx;d(Lbem;)Lamg;
      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
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official g_ Lbfx;g_()Lamg;
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
    • getSoundVolume

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

      @Nullable public @Nullable BeeEntity createChild(ServerWorld serverWorld, PassiveEntity passiveEntity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21771 Lnet/minecraft/class_4466;method_21771(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_4466;
      official b Lbrk;b(Laif;Lbfc;)Lbrk;
      named createChild Lnet/minecraft/entity/passive/BeeEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/BeeEntity;
    • getActiveEyeHeight

      protected float getActiveEyeHeight(EntityPose pose, EntityDimensions dimensions)
      Overrides:
      getActiveEyeHeight in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_18394 Lnet/minecraft/class_1309;method_18394(Lnet/minecraft/class_4050;Lnet/minecraft/class_4048;)F
      official b Lbfx;b(Lbgj;Lbfi;)F
      named getActiveEyeHeight Lnet/minecraft/entity/LivingEntity;getActiveEyeHeight(Lnet/minecraft/entity/EntityPose;Lnet/minecraft/entity/EntityDimensions;)F
    • 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
      intermediary method_5623 Lnet/minecraft/class_1297;method_5623(DZLnet/minecraft/class_2680;Lnet/minecraft/class_2338;)V
      official a Lbfh;a(DZLdby;Lgu;)V
      named fall Lnet/minecraft/entity/Entity;fall(DZLnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)V
    • isFlappingWings

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

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

      Overrides:
      isFlappingWings in class Entity
      Returns:
      whether the entity is flapping their wings
      Mappings:
      Namespace Name Mixin selector
      intermediary method_5776 Lnet/minecraft/class_1297;method_5776()Z
      official aO Lbfh;aO()Z
      named isFlappingWings Lnet/minecraft/entity/Entity;isFlappingWings()Z
    • isInAir

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

      public void onHoneyDelivered()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_21788 Lnet/minecraft/class_4466;method_21788()V
      official gl Lbrk;gl()V
      named onHoneyDelivered Lnet/minecraft/entity/passive/BeeEntity;onHoneyDelivered()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
      intermediary method_5643 Lnet/minecraft/class_1297;method_5643(Lnet/minecraft/class_1282;F)Z
      official a Lbfh;a(Lbem;F)Z
      named damage Lnet/minecraft/entity/Entity;damage(Lnet/minecraft/entity/damage/DamageSource;F)Z
    • getGroup

      public EntityGroup getGroup()
      Overrides:
      getGroup in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_6046 Lnet/minecraft/class_1309;method_6046()Lnet/minecraft/class_1310;
      official eN Lbfx;eN()Lbgc;
      named getGroup Lnet/minecraft/entity/LivingEntity;getGroup()Lnet/minecraft/entity/EntityGroup;
    • swimUpward

      protected void swimUpward(TagKey<Fluid> fluid)
      Overrides:
      swimUpward in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      intermediary method_6010 Lnet/minecraft/class_1309;method_6010(Lnet/minecraft/class_6862;)V
      official c Lbfx;c(Lanl;)V
      named swimUpward Lnet/minecraft/entity/LivingEntity;swimUpward(Lnet/minecraft/registry/tag/TagKey;)V
    • 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
      intermediary method_29919 Lnet/minecraft/class_1297;method_29919()Lnet/minecraft/class_243;
      official cG Lbfh;cG()Leea;
      named getLeashOffset Lnet/minecraft/entity/Entity;getLeashOffset()Lnet/minecraft/util/math/Vec3d;
    • isWithinDistance

      boolean isWithinDistance(BlockPos pos, int distance)
      Mappings:
      Namespace Name Mixin selector
      intermediary method_23979 Lnet/minecraft/class_4466;method_23979(Lnet/minecraft/class_2338;I)Z
      official b Lbrk;b(Lgu;I)Z
      named isWithinDistance Lnet/minecraft/entity/passive/BeeEntity;isWithinDistance(Lnet/minecraft/util/math/BlockPos;I)Z