Class PathBase
java.lang.Object
com.zenith.feature.pathfinder.calc.PathBase
- All Implemented Interfaces:
IPath
- Direct Known Subclasses:
CutoffPath,Path,SplicedPath
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCuts off this path at the loaded chunk border, and returns the resulting path.staticCutoff(Goal destination) Cuts off this path using the min length and cutoff factor settings, and returns the resulting path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.zenith.feature.pathfinder.calc.IPath
getDest, getGoal, getNumNodesConsidered, getSrc, length, movements, positions, postProcess, sanityCheck, ticksRemainingFrom
-
Constructor Details
-
PathBase
public PathBase()
-
-
Method Details
-
cutoffAtLoadedChunks
Description copied from interface:IPathCuts off this path at the loaded chunk border, and returns the resulting path. Default implementation just returns this path, without the intended functionality.The argument is supposed to be a BlockStateInterface LOL LOL LOL LOL LOL
- Specified by:
cutoffAtLoadedChunksin interfaceIPath- Returns:
- The result of this cut-off operation
-
staticCutoff
Description copied from interface:IPathCuts off this path using the min length and cutoff factor settings, and returns the resulting path. Default implementation just returns this path, without the intended functionality.- Specified by:
staticCutoffin interfaceIPath- Parameters:
destination- The end goal of this path- Returns:
- The result of this cut-off operation
-