Interface GoalScorer

All Known Subinterfaces:
DynamicGoalScorer
All Known Implementing Classes:
AwayFromPosGoal, BreakBlockPosGoal, CloseToPosGoal, CompositeGoal, PlaceBlockGoal, PosGoal, XZGoal, YGoal

public interface GoalScorer
A goal represents something that the user wants the bot to achieve.
  • Method Details

    • computeScore

      double computeScore(MinecraftGraph graph, SFVec3i blockPosition, List<WorldAction> actions)
      Calculates the estimated score for a given block position to the goal. Usually this means the distance from achieving the goal.
      Parameters:
      graph - the graph to calculate the score for
      blockPosition - the block position to calculate the score for
      actions - the actions that have been executed to reach the current state
      Returns:
      the score for the given world state
    • isFinished

      boolean isFinished(MinecraftRouteNode current)
      Checks if the given world state indicates that the goal is reached.
      Parameters:
      current - the node to check
      Returns:
      true if the goal is reached, false otherwise