Class MinecraftRouteNode
java.lang.Object
com.soulfiremc.server.pathfinding.MinecraftRouteNode
- All Implemented Interfaces:
Comparable<MinecraftRouteNode>
-
Constructor Summary
ConstructorsConstructorDescriptionMinecraftRouteNode(NodeState node, @Nullable MinecraftRouteNode parent, @Nullable ActionDirection parentToNodeDirection, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore) MinecraftRouteNode(NodeState node, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore) -
Method Summary
Modifier and TypeMethodDescriptionactions()intcompareTo(MinecraftRouteNode other) node()@Nullable MinecraftRouteNodeparent()@Nullable ActionDirectionvoidsetBetterParent(MinecraftRouteNode parent, ActionDirection moveDirection, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore) doubledouble@NotNull StringtoString()double
-
Constructor Details
-
MinecraftRouteNode
public MinecraftRouteNode(NodeState node, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore) -
MinecraftRouteNode
public MinecraftRouteNode(NodeState node, @Nullable MinecraftRouteNode parent, @Nullable ActionDirection parentToNodeDirection, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore)
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<MinecraftRouteNode>
-
setBetterParent
public void setBetterParent(MinecraftRouteNode parent, ActionDirection moveDirection, List<WorldAction> actions, double sourceCost, double targetCost, double totalRouteScore) -
node
-
parent
-
parentToNodeDirection
-
actions
-
sourceCost
public double sourceCost() -
targetCost
public double targetCost() -
totalRouteScore
public double totalRouteScore() -
toString
-