public interface IPathingBehavior extends IBehavior
Modifier and Type | Method and Description |
---|---|
boolean |
cancelEverything()
Cancels the pathing behavior or the current path calculation, and all processes that could be controlling path.
|
java.util.Optional<java.lang.Double> |
estimatedTicksToGoal()
Returns the estimated remaining ticks to the current goal.
|
void |
forceCancel()
PLEASE never call this
|
IPathExecutor |
getCurrent() |
Goal |
getGoal() |
java.util.Optional<? extends IPathFinder> |
getInProgress() |
IPathExecutor |
getNext()
Returns the next path executor, created when planning ahead.
|
default java.util.Optional<IPath> |
getPath()
Returns the current path, from the current path executor, if there is one.
|
default boolean |
hasPath() |
boolean |
isPathing() |
default java.util.Optional<java.lang.Double> |
ticksRemainingInSegment()
Returns the estimated remaining ticks in the current pathing
segment.
|
default java.util.Optional<java.lang.Double> |
ticksRemainingInSegment(boolean includeCurrentMovement)
Returns the estimated remaining ticks in the current pathing
segment.
|
onBlockInteract, onChunkEvent, onPathEvent, onPlayerDeath, onPlayerRotationMove, onPlayerSprintState, onPlayerUpdate, onPreTabComplete, onReceivePacket, onRenderPass, onSendChatMessage, onSendPacket, onTick, onWorldEvent
default java.util.Optional<java.lang.Double> ticksRemainingInSegment()
Optional.empty()
will be returned in the case that there is no current segment being pathed.default java.util.Optional<java.lang.Double> ticksRemainingInSegment(boolean includeCurrentMovement)
Optional.empty()
will be returned in the case that there is no current segment being pathed.includeCurrentMovement
- whether or not to include the entirety of the cost of the currently executing movement in the totaljava.util.Optional<java.lang.Double> estimatedTicksToGoal()
Optional.empty()
will be returned in the case that there is no current goal.boolean isPathing()
hasPath()
default boolean hasPath()
isPathing()
boolean cancelEverything()
Basically, "MAKE IT STOP".
void forceCancel()
If cancelEverything was like "kill" this is "sudo kill -9". Or shutting off your computer.
default java.util.Optional<IPath> getPath()
java.util.Optional<? extends IPathFinder> getInProgress()
IPathExecutor getCurrent()
IPathExecutor getNext()