Class ElytraBehavior

java.lang.Object
com.zenith.feature.pathfinder.process.elytra.ElytraBehavior
All Implemented Interfaces:
ProcessUtil

public final class ElytraBehavior extends Object implements ProcessUtil
  • Field Details

    • npfContext

      public NetherPathfinderContext npfContext
    • pathFinder

      public IElytraPathFinder pathFinder
    • pathManager

      public final ElytraBehavior.PathManager pathManager
    • landingMode

      public volatile boolean landingMode
    • initialPathFailed

      public volatile boolean initialPathFailed
    • destination

      public final BlockPos destination
    • useFirework

      public boolean useFirework
    • fireworkHand

      public Hand fireworkHand
  • Constructor Details

  • Method Details

    • onReceivePacket

      public void onReceivePacket()
    • pathTo

      public void pathTo()
    • cancel

      public void cancel()
    • destroy

      public void destroy()
    • onTick

      public void onTick()
    • tick

      public void tick()
      Called by ElytraProcess.onTick(boolean, boolean, Goal, PathingCommand) when the process is in control and the player is flying
    • onPostTick

      public void onPostTick()
    • onFireworkUsed

      public void onFireworkUsed()
    • isFireworks

      public static boolean isFireworks(ItemStack itemStack)
    • clearView

      public boolean clearView(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d dest, boolean ignoreLava)
    • findGoodElytra

      public int findGoodElytra()
    • trySwapElytra

      public void trySwapElytra()
    • isSwappingElytra

      public boolean isSwappingElytra()
    • raytrace

      public boolean raytrace(double startX, double startY, double startZ, double endX, double endY, double endZ)
    • raytrace

      public boolean raytrace(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d end)
    • raytrace

      public boolean raytrace(int count, double[] src, double[] dst, int visibility)
    • passable

      public boolean passable(int x, int y, int z)