Interface DynamicGoalScorer

All Superinterfaces:
GoalScorer
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DynamicGoalScorer extends GoalScorer
  • Method Details

    • create

      GoalScorer create()
    • computeScore

      default double computeScore(MinecraftGraph graph, SFVec3i blockPosition, List<WorldAction> actions)
      Description copied from interface: GoalScorer
      Calculates the estimated score for a given block position to the goal. Usually this means the distance from achieving the goal.
      Specified by:
      computeScore in interface GoalScorer
      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

      default boolean isFinished(MinecraftRouteNode current)
      Description copied from interface: GoalScorer
      Checks if the given world state indicates that the goal is reached.
      Specified by:
      isFinished in interface GoalScorer
      Parameters:
      current - the node to check
      Returns:
      true if the goal is reached, false otherwise