Class PathBase

java.lang.Object
com.zenith.feature.pathfinder.calc.PathBase
All Implemented Interfaces:
IPath
Direct Known Subclasses:
CutoffPath, Path, SplicedPath

public abstract class PathBase extends Object implements IPath
  • Constructor Details

    • PathBase

      public PathBase()
  • Method Details

    • cutoffAtLoadedChunks

      public PathBase cutoffAtLoadedChunks()
      Description copied from interface: IPath
      Cuts 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:
      cutoffAtLoadedChunks in interface IPath
      Returns:
      The result of this cut-off operation
    • staticCutoff

      public PathBase staticCutoff(Goal destination)
      Description copied from interface: IPath
      Cuts 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:
      staticCutoff in interface IPath
      Parameters:
      destination - The end goal of this path
      Returns:
      The result of this cut-off operation