Class GetToBlockProcess
java.lang.Object
com.zenith.feature.pathfinder.process.BaritoneProcessHelper
com.zenith.feature.pathfinder.process.GetToBlockProcess
- All Implemented Interfaces:
IBaritoneProcess,ProcessUtil
-
Field Summary
Fields inherited from class com.zenith.feature.pathfinder.process.BaritoneProcessHelper
baritone, ctxFields inherited from interface com.zenith.feature.pathfinder.process.IBaritoneProcess
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetToBlock(Block block) booleanisActive()Would this process like to be in control?voidCalled ifIBaritoneProcess.isActive()returnedtrue, but another non-temporary process has control.onTick(boolean calcFailed, boolean isSafeToCancel, Goal currentGoal, PathingCommand prevCommand) Called when this process is in control of pathing; Returns what Baritone should do.Methods inherited from class com.zenith.feature.pathfinder.process.BaritoneProcessHelper
isTemporary, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.zenith.feature.pathfinder.process.IBaritoneProcess
displayName, priorityMethods inherited from interface com.zenith.feature.pathfinder.process.ProcessUtil
debug, debug, error, error, info, info, processLogPrefix, warn, warn
-
Constructor Details
-
GetToBlockProcess
-
-
Method Details
-
getToBlock
-
isActive
public boolean isActive()Description copied from interface:IBaritoneProcessWould 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:IBaritoneProcessCalled when this process is in control of pathing; Returns what Baritone should do.- Parameters:
calcFailed-trueif this specific process was in control last tick, and there was aPathEvent.CALC_FAILEDevent last tickisSafeToCancel-trueif aPathingCommandType.REQUEST_PAUSEwould happen this tick, andPathingBehaviorwouldn't actually tick.falseif 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
PathingBehaviorshould do
-
blacklistClosest
public boolean blacklistClosest() -
onLostControl
public void onLostControl()Description copied from interface:IBaritoneProcessCalled ifIBaritoneProcess.isActive()returnedtrue, but another non-temporary process has control. Effectively the same as cancel. You want control but you don't get it. -
displayName0
-