Class Bee.BeeGoToHiveGoal

Enclosing class:
Bee

public class Bee.BeeGoToHiveGoal extends Bee.BaseBeeGoal
  • Field Details

    • MAX_TRAVELLING_TICKS

      public static final int MAX_TRAVELLING_TICKS
      See Also:
      Constant Field Values
    • travellingTicks

      int travellingTicks
    • MAX_BLACKLISTED_TARGETS

      private static final int MAX_BLACKLISTED_TARGETS
      See Also:
      Constant Field Values
    • blacklistedTargets

      final List<BlockPos> blacklistedTargets
    • lastPath

      @Nullable private Path lastPath
    • TICKS_BEFORE_HIVE_DROP

      private static final int TICKS_BEFORE_HIVE_DROP
      See Also:
      Constant Field Values
    • ticksStuck

      private int ticksStuck
  • Constructor Details

    • BeeGoToHiveGoal

      BeeGoToHiveGoal()
  • Method Details

    • canBeeUse

      public boolean canBeeUse()
      Specified by:
      canBeeUse in class Bee.BaseBeeGoal
    • canBeeContinueToUse

      public boolean canBeeContinueToUse()
      Specified by:
      canBeeContinueToUse in class Bee.BaseBeeGoal
    • 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
    • pathfindDirectlyTowards

      private boolean pathfindDirectlyTowards(BlockPos p_27991_)
    • isTargetBlacklisted

      boolean isTargetBlacklisted(BlockPos p_27994_)
    • blacklistTarget

      private void blacklistTarget(BlockPos p_27999_)
    • clearBlacklist

      void clearBlacklist()
    • dropAndBlacklistHive

      private void dropAndBlacklistHive()
    • dropHive

      private void dropHive()
    • hasReachedTarget

      private boolean hasReachedTarget(BlockPos p_28002_)