Class GetToBlockProcess

java.lang.Object
com.zenith.feature.pathfinder.process.BaritoneProcessHelper
com.zenith.feature.pathfinder.process.GetToBlockProcess
All Implemented Interfaces:
IBaritoneProcess

public final class GetToBlockProcess extends BaritoneProcessHelper
  • Constructor Details

    • GetToBlockProcess

      public GetToBlockProcess(Baritone baritone)
  • Method Details

    • getToBlock

      public PathingRequestFuture getToBlock(Block block)
    • 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
    • blacklistClosest

      public boolean blacklistClosest()
    • 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.
    • displayName0

      public String displayName0()