Class ElytraProcess

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

public class ElytraProcess extends BaritoneProcessHelper
  • Constructor Details

    • ElytraProcess

      public ElytraProcess(Baritone baritone)
  • Method Details

    • state

      public ElytraProcess.State state()
    • 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.
    • onLostControl

      public void onLostControl(boolean destroyNpf)
    • 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.
    • resetState

      public void resetState()
    • 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
    • applyFlightInput

      public void applyFlightInput()
    • onInputSubmitted

      public void onInputSubmitted(InputRequestFuture future)
    • landingSpotIsBad

      public void landingSpotIsBad(BlockPos endPos)
    • 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
    • displayName0

      public String displayName0()
    • repackChunks

      public void repackChunks()
    • currentDestination

      public BlockPos currentDestination()
    • getPath

      public List<BlockPos> getPath()
    • getPathPosition

      public int getPathPosition()
    • pathTo

      public PathingRequestFuture pathTo(BlockPos destination)
    • pathTo

      public PathingRequestFuture pathTo(Goal iGoal)
    • isLoaded

      public boolean isLoaded()
    • isSafeToCancel

      public boolean isSafeToCancel()
    • onPostTick

      public void onPostTick()
    • onPlayerPosRotate

      public void onPlayerPosRotate()
    • onChunkEvent

      public void onChunkEvent(Chunk chunk)
    • onBlockChange

      public void onBlockChange(int x, int y, int z, int stateId)
    • onChunkUnload

      public void onChunkUnload(int x, int z)