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 Summary
Modifier and TypeMethodDescriptiondoublecomputeScore(MinecraftGraph graph, SFVec3i blockPosition, List<WorldAction> actions) Calculates the estimated score for a given block position to the goal.booleanisFinished(MinecraftRouteNode current) Checks if the given world state indicates that the goal is reached.
-
Method Details
-
computeScore
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 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
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
-