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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault doublecomputeScore(MinecraftGraph graph, SFVec3i blockPosition, List<WorldAction> actions) Calculates the estimated score for a given block position to the goal.create()default booleanisFinished(MinecraftRouteNode current) Checks if the given world state indicates that the goal is reached.
-
Method Details
-
create
GoalScorer create() -
computeScore
Description copied from interface:GoalScorerCalculates the estimated score for a given block position to the goal. Usually this means the distance from achieving the goal.- Specified by:
computeScorein interfaceGoalScorer- Parameters:
graph- the graph to calculate the score forblockPosition- the block position to calculate the score foractions- the actions that have been executed to reach the current state- Returns:
- the score for the given world state
-
isFinished
Description copied from interface:GoalScorerChecks if the given world state indicates that the goal is reached.- Specified by:
isFinishedin interfaceGoalScorer- Parameters:
current- the node to check- Returns:
- true if the goal is reached, false otherwise
-