Record Class RouteFinder.PartialRouteResult
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.RouteFinder.PartialRouteResult
- All Implemented Interfaces:
RouteFinder.RouteSearchResult
- Enclosing class:
RouteFinder
public static record RouteFinder.PartialRouteResult(List<WorldAction> actions)
extends Record
implements RouteFinder.RouteSearchResult
This is the best route we found before reaching the edge of view distance
-
Constructor Summary
ConstructorsConstructorDescriptionPartialRouteResult(List<WorldAction> actions) Creates an instance of aPartialRouteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartialRouteResult
Creates an instance of aPartialRouteResultrecord class.- Parameters:
actions- the value for theactionsrecord component
-
-
Method Details
-
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). -
actions
Returns the value of theactionsrecord component.- Returns:
- the value of the
actionsrecord component
-