Record Class RouteFinder.FoundRouteResult
java.lang.Object
java.lang.Record
com.soulfiremc.server.pathfinding.RouteFinder.FoundRouteResult
- All Implemented Interfaces:
RouteFinder.RouteSearchResult
- Enclosing class:
RouteFinder
public static record RouteFinder.FoundRouteResult(List<WorldAction> actions)
extends Record
implements RouteFinder.RouteSearchResult
A full route found to the target
-
Constructor Summary
ConstructorsConstructorDescriptionFoundRouteResult(List<WorldAction> actions) Creates an instance of aFoundRouteResultrecord 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
-
FoundRouteResult
Creates an instance of aFoundRouteResultrecord 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
-