Class BeeEntity

All Implemented Interfaces:
ICommandSource, IAngerable, IFlyingAnimal, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>

public class BeeEntity extends AnimalEntity implements IAngerable, IFlyingAnimal
  • Field Details

    • DATA_FLAGS_ID

      private static final DataParameter<Byte> DATA_FLAGS_ID
    • DATA_REMAINING_ANGER_TIME

      private static final DataParameter<Integer> DATA_REMAINING_ANGER_TIME
    • PERSISTENT_ANGER_TIME

      private static final RangedInteger PERSISTENT_ANGER_TIME
    • persistentAngerTarget

      private UUID persistentAngerTarget
    • rollAmount

      private float rollAmount
    • rollAmountO

      private float rollAmountO
    • timeSinceSting

      private int timeSinceSting
    • ticksWithoutNectarSinceExitingHive

      private int ticksWithoutNectarSinceExitingHive
    • stayOutOfHiveCountdown

      private int stayOutOfHiveCountdown
    • numCropsGrownSincePollination

      private int numCropsGrownSincePollination
    • remainingCooldownBeforeLocatingNewHive

      private int remainingCooldownBeforeLocatingNewHive
    • remainingCooldownBeforeLocatingNewFlower

      private int remainingCooldownBeforeLocatingNewFlower
    • savedFlowerPos

      @Nullable private BlockPos savedFlowerPos
    • hivePos

      @Nullable private BlockPos hivePos
    • beePollinateGoal

      private BeeEntity.PollinateGoal beePollinateGoal
    • goToHiveGoal

      private BeeEntity.FindBeehiveGoal goToHiveGoal
    • goToKnownFlowerGoal

      private BeeEntity.FindFlowerGoal goToKnownFlowerGoal
    • underWaterTicks

      private int underWaterTicks
  • Constructor Details

  • Method Details

    • defineSynchedData

      protected void defineSynchedData()
      Overrides:
      defineSynchedData in class AgeableEntity
    • getWalkTargetValue

      public float getWalkTargetValue(BlockPos p_205022_1_, IWorldReader p_205022_2_)
      Overrides:
      getWalkTargetValue in class AnimalEntity
    • registerGoals

      protected void registerGoals()
      Overrides:
      registerGoals in class MobEntity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundNBT p_213281_1_)
      Overrides:
      addAdditionalSaveData in class AnimalEntity
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Overrides:
      readAdditionalSaveData in class AnimalEntity
    • doHurtTarget

      public boolean doHurtTarget(Entity p_70652_1_)
      Overrides:
      doHurtTarget in class MobEntity
    • tick

      public void tick()
      Overrides:
      tick in class MobEntity
    • spawnFluidParticle

      private void spawnFluidParticle(World p_226397_1_, double p_226397_2_, double p_226397_4_, double p_226397_6_, double p_226397_8_, double p_226397_10_, IParticleData p_226397_12_)
    • pathfindRandomlyTowards

      private void pathfindRandomlyTowards(BlockPos p_226433_1_)
    • getSavedFlowerPos

      @Nullable public BlockPos getSavedFlowerPos()
    • hasSavedFlowerPos

      public boolean hasSavedFlowerPos()
    • setSavedFlowerPos

      public void setSavedFlowerPos(BlockPos p_226431_1_)
    • isTiredOfLookingForNectar

      private boolean isTiredOfLookingForNectar()
    • wantsToEnterHive

      private boolean wantsToEnterHive()
    • setStayOutOfHiveCountdown

      public void setStayOutOfHiveCountdown(int p_226450_1_)
    • getRollAmount

      public float getRollAmount(float p_226455_1_)
    • updateRollAmount

      private void updateRollAmount()
    • customServerAiStep

      protected void customServerAiStep()
      Overrides:
      customServerAiStep in class AnimalEntity
    • resetTicksWithoutNectarSinceExitingHive

      public void resetTicksWithoutNectarSinceExitingHive()
    • isHiveNearFire

      private boolean isHiveNearFire()
    • getRemainingPersistentAngerTime

      public int getRemainingPersistentAngerTime()
      Specified by:
      getRemainingPersistentAngerTime in interface IAngerable
    • setRemainingPersistentAngerTime

      public void setRemainingPersistentAngerTime(int p_230260_1_)
      Specified by:
      setRemainingPersistentAngerTime in interface IAngerable
    • getPersistentAngerTarget

      public UUID getPersistentAngerTarget()
      Specified by:
      getPersistentAngerTarget in interface IAngerable
    • setPersistentAngerTarget

      public void setPersistentAngerTarget(@Nullable UUID p_230259_1_)
      Specified by:
      setPersistentAngerTarget in interface IAngerable
    • startPersistentAngerTimer

      public void startPersistentAngerTimer()
      Specified by:
      startPersistentAngerTimer in interface IAngerable
    • doesHiveHaveSpace

      private boolean doesHiveHaveSpace(BlockPos p_226435_1_)
    • hasHive

      public boolean hasHive()
    • getHivePos

      @Nullable public BlockPos getHivePos()
    • sendDebugPackets

      protected void sendDebugPackets()
      Overrides:
      sendDebugPackets in class MobEntity
    • getCropsGrownSincePollination

      private int getCropsGrownSincePollination()
    • resetNumCropsGrownSincePollination

      private void resetNumCropsGrownSincePollination()
    • incrementNumCropsGrownSincePollination

      private void incrementNumCropsGrownSincePollination()
    • aiStep

      public void aiStep()
      Overrides:
      aiStep in class AnimalEntity
    • isHiveValid

      private boolean isHiveValid()
    • hasNectar

      public boolean hasNectar()
    • setHasNectar

      private void setHasNectar(boolean p_226447_1_)
    • hasStung

      public boolean hasStung()
    • setHasStung

      private void setHasStung(boolean p_226449_1_)
    • isRolling

      private boolean isRolling()
    • setRolling

      private void setRolling(boolean p_226452_1_)
    • isTooFarAway

      private boolean isTooFarAway(BlockPos p_226437_1_)
    • setFlag

      private void setFlag(int p_226404_1_, boolean p_226404_2_)
    • getFlag

      private boolean getFlag(int p_226456_1_)
    • createAttributes

      public static AttributeModifierMap.MutableAttribute createAttributes()
    • createNavigation

      protected PathNavigator createNavigation(World p_175447_1_)
      Overrides:
      createNavigation in class MobEntity
    • isFood

      public boolean isFood(ItemStack p_70877_1_)
      Overrides:
      isFood in class AnimalEntity
    • isFlowerValid

      private boolean isFlowerValid(BlockPos p_226439_1_)
    • playStepSound

      protected void playStepSound(BlockPos p_180429_1_, BlockState p_180429_2_)
      Overrides:
      playStepSound in class Entity
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource p_184601_1_)
      Overrides:
      getHurtSound in class LivingEntity
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
    • getSoundVolume

      protected float getSoundVolume()
      Overrides:
      getSoundVolume in class LivingEntity
    • getBreedOffspring

      public BeeEntity getBreedOffspring(ServerWorld p_241840_1_, AgeableEntity p_241840_2_)
      Specified by:
      getBreedOffspring in class AgeableEntity
    • getStandingEyeHeight

      protected float getStandingEyeHeight(Pose p_213348_1_, EntitySize p_213348_2_)
      Overrides:
      getStandingEyeHeight in class LivingEntity
    • causeFallDamage

      public boolean causeFallDamage(float p_225503_1_, float p_225503_2_)
      Overrides:
      causeFallDamage in class LivingEntity
    • checkFallDamage

      protected void checkFallDamage(double p_184231_1_, boolean p_184231_3_, BlockState p_184231_4_, BlockPos p_184231_5_)
      Overrides:
      checkFallDamage in class LivingEntity
    • makeFlySound

      protected boolean makeFlySound()
      Overrides:
      makeFlySound in class Entity
    • dropOffNectar

      public void dropOffNectar()
    • hurt

      public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
      Overrides:
      hurt in class AnimalEntity
    • getMobType

      public CreatureAttribute getMobType()
      Overrides:
      getMobType in class LivingEntity
    • jumpInLiquid

      protected void jumpInLiquid(ITag<Fluid> p_180466_1_)
      Overrides:
      jumpInLiquid in class MobEntity
    • getLeashOffset

      public Vector3d getLeashOffset()
      Overrides:
      getLeashOffset in class Entity
    • closerThan

      private boolean closerThan(BlockPos p_226401_1_, int p_226401_2_)