Class BeeEntity.PollinateGoal

Enclosing class:
BeeEntity

class BeeEntity.PollinateGoal extends BeeEntity.PassiveGoal
  • Field Details

    • VALID_POLLINATION_BLOCKS

      private final Predicate<BlockState> VALID_POLLINATION_BLOCKS
    • successfulPollinatingTicks

      private int successfulPollinatingTicks
    • lastSoundPlayedTick

      private int lastSoundPlayedTick
    • pollinating

      private boolean pollinating
    • hoverPos

      private Vector3d hoverPos
    • pollinatingTicks

      private int pollinatingTicks
  • Constructor Details

    • PollinateGoal

      PollinateGoal()
  • Method Details

    • canBeeUse

      public boolean canBeeUse()
      Specified by:
      canBeeUse in class BeeEntity.PassiveGoal
    • canBeeContinueToUse

      public boolean canBeeContinueToUse()
      Specified by:
      canBeeContinueToUse in class BeeEntity.PassiveGoal
    • hasPollinatedLongEnough

      private boolean hasPollinatedLongEnough()
    • isPollinating

      private boolean isPollinating()
    • stopPollinating

      private void stopPollinating()
    • start

      public void start()
      Overrides:
      start in class Goal
    • stop

      public void stop()
      Overrides:
      stop in class Goal
    • tick

      public void tick()
      Overrides:
      tick in class Goal
    • setWantedPos

      private void setWantedPos()
    • getOffset

      private float getOffset()
    • findNearbyFlower

      private Optional<BlockPos> findNearbyFlower()
    • findNearestBlock

      private Optional<BlockPos> findNearestBlock(Predicate<BlockState> p_226500_1_, double p_226500_2_)