Class BeeEntity.FindBeehiveGoal

Enclosing class:
BeeEntity

public class BeeEntity.FindBeehiveGoal extends BeeEntity.PassiveGoal
  • Field Details

    • travellingTicks

      private int travellingTicks
    • blacklistedTargets

      private List<BlockPos> blacklistedTargets
    • lastPath

      @Nullable private Path lastPath
    • ticksStuck

      private int ticksStuck
  • Constructor Details

    • FindBeehiveGoal

      FindBeehiveGoal()
  • Method Details

    • canBeeUse

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

      public boolean canBeeContinueToUse()
      Specified by:
      canBeeContinueToUse in class BeeEntity.PassiveGoal
    • 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_226472_1_)
    • isTargetBlacklisted

      private boolean isTargetBlacklisted(BlockPos p_226473_1_)
    • blacklistTarget

      private void blacklistTarget(BlockPos p_226475_1_)
    • clearBlacklist

      private void clearBlacklist()
    • dropAndBlacklistHive

      private void dropAndBlacklistHive()
    • dropHive

      private void dropHive()
    • hasReachedTarget

      private boolean hasReachedTarget(BlockPos p_226476_1_)