Class BeeEntity.PollinateGoal

    • Field Detail

      • VALID_POLLINATION_BLOCKS

        private final java.util.function.Predicate<BlockState> VALID_POLLINATION_BLOCKS
      • successfulPollinatingTicks

        private int successfulPollinatingTicks
      • lastSoundPlayedTick

        private int lastSoundPlayedTick
      • pollinating

        private boolean pollinating
      • pollinatingTicks

        private int pollinatingTicks
    • Constructor Detail

      • PollinateGoal

        PollinateGoal()
    • Method Detail

      • 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 java.util.Optional<BlockPos> findNearbyFlower()
      • findNearestBlock

        private java.util.Optional<BlockPos> findNearestBlock​(java.util.function.Predicate<BlockState> p_226500_1_,
                                                              double p_226500_2_)