Class SplicedPath
java.lang.Object
com.zenith.feature.pathfinder.calc.PathBase
com.zenith.feature.pathfinder.calc.SplicedPath
- All Implemented Interfaces:
IPath
-
Method Summary
Modifier and TypeMethodDescriptiongetGoal()intReturns the number of nodes that were considered during calculation before this path was found.intlength()Returns the number of positions in this path.Ordered list of movements to carry out.All positions along the way.static Optional<SplicedPath> Methods inherited from class PathBase
cutoffAtLoadedChunks, staticCutoffMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPath
getDest, getSrc, postProcess, sanityCheck, ticksRemainingFrom
-
Method Details
-
getGoal
- Returns:
- The goal that this path was calculated towards
-
movements
Description copied from interface:IPathOrdered list of movements to carry out. movements.get(i).getSrc() should equal positions.get(i) movements.get(i).getDest() should equal positions.get(i+1) movements.size() should equal positions.size()-1- Returns:
- All of the movements to carry out
-
positions
-
getNumNodesConsidered
public int getNumNodesConsidered()Description copied from interface:IPathReturns the number of nodes that were considered during calculation before this path was found.- Returns:
- The number of nodes that were considered before finding this path
-
length
public int length()Description copied from interface:IPathReturns the number of positions in this path. Equivalent topositions().size().- Returns:
- Number of positions in this path
-
trySplice
public static Optional<SplicedPath> trySplice(IPath first, IPath second, boolean allowOverlapCutoff)
-