Class ClearAreaProcess

java.lang.Object
com.zenith.feature.pathfinder.process.BaritoneProcessHelper
com.zenith.feature.pathfinder.process.ClearAreaProcess
All Implemented Interfaces:
IBaritoneProcess, ProcessUtil

public class ClearAreaProcess extends BaritoneProcessHelper
  • Constructor Details

    • ClearAreaProcess

      public ClearAreaProcess(Baritone baritone)
  • Method Details

    • clearArea

      public PathingRequestFuture clearArea(BlockPos pos1, BlockPos pos2)
    • isActive

      public boolean isActive()
      Description copied from interface: IBaritoneProcess
      Would this process like to be in control?
      Returns:
      Whether or not this process would like to be in contorl.
    • onTick

      public PathingCommand onTick(boolean calcFailed, boolean isSafeToCancel, Goal currentGoal, PathingCommand prevCommand)
      Description copied from interface: IBaritoneProcess
      Called when this process is in control of pathing; Returns what Baritone should do.
      Parameters:
      calcFailed - true if this specific process was in control last tick, and there was a PathEvent.CALC_FAILED event last tick
      isSafeToCancel - true if a PathingCommandType.REQUEST_PAUSE would happen this tick, and PathingBehavior wouldn't actually tick. false if the PathExecutor reported pausing would be unsafe at the end of the last tick. Effectively "could request cancel or pause and have it happen right away"
      currentGoal -
      prevCommand -
      Returns:
      What the PathingBehavior should do
    • targetValid

      public boolean targetValid(int x, int y, int z)
    • onLostControl

      public void onLostControl()
      Description copied from interface: IBaritoneProcess
      Called if IBaritoneProcess.isActive() returned true, but another non-temporary process has control. Effectively the same as cancel. You want control but you don't get it.
    • stop

      public void stop()
      Specified by:
      stop in interface IBaritoneProcess
      Overrides:
      stop in class BaritoneProcessHelper
    • displayName0

      public String displayName0()
    • priority

      public double priority()
      Description copied from interface: IBaritoneProcess
      Used to determine which Process gains control if multiple are reporting IBaritoneProcess.isActive(). The one that returns the highest value will be given control.
      Returns:
      A double representing the priority