Record Class RouteFinder
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.RouteFinder
-
Constructor Summary
ConstructorsConstructorDescriptionRouteFinder(MinecraftGraph graph, GoalScorer scorer) Creates an instance of aRouteFinderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.findRouteFuture(NodeState from, boolean requiresRepositioning) findRouteSync(NodeState from) graph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.scorer()Returns the value of thescorerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RouteFinder
Creates an instance of aRouteFinderrecord class.- Parameters:
graph- the value for thegraphrecord componentscorer- the value for thescorerrecord component
-
-
Method Details
-
findRouteFuture
public CompletableFuture<List<WorldAction>> findRouteFuture(NodeState from, boolean requiresRepositioning) -
findRouteSync
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
graph
Returns the value of thegraphrecord component.- Returns:
- the value of the
graphrecord component
-
scorer
Returns the value of thescorerrecord component.- Returns:
- the value of the
scorerrecord component
-