Class NetherPathfinderContext

java.lang.Object
com.zenith.feature.pathfinder.process.elytra.NetherPathfinderContext
All Implemented Interfaces:
IElytraPathFinder

public final class NetherPathfinderContext extends Object implements IElytraPathFinder
  • Field Details

  • Constructor Details

    • NetherPathfinderContext

      public NetherPathfinderContext()
  • Method Details

    • hasChunk

      public boolean hasChunk(BlockPos pos)
    • queueCacheCulling

      public void queueCacheCulling(int chunkX, int chunkZ, int maxDistanceBlocks)
    • queueForPacking

      public void queueForPacking(Chunk chunkIn)
    • queueBlockUpdate

      public void queueBlockUpdate(int x, int y, int z, int blockStateId)
    • queueChunkUnload

      public void queueChunkUnload(int x, int z)
    • pathFindAsync

      public CompletableFuture<UnpackedSegment> pathFindAsync(BlockPos src, BlockPos dst)
      Specified by:
      pathFindAsync in interface IElytraPathFinder
    • raytrace

      public boolean raytrace(double startX, double startY, double startZ, double endX, double endY, double endZ)
      Performs a raytrace from the given start position to the given end position, returning true if there is visibility between the two points.
      Parameters:
      startX - The start X coordinate
      startY - The start Y coordinate
      startZ - The start Z coordinate
      endX - The end X coordinate
      endY - The end Y coordinate
      endZ - The end Z coordinate
      Returns:
      true if there is visibility between the points
    • raytrace

      public boolean raytrace(org.cloudburstmc.math.vector.Vector3d start, org.cloudburstmc.math.vector.Vector3d end)
      Performs a raytrace from the given start position to the given end position, returning true if there is visibility between the two points.
      Parameters:
      start - The starting point
      end - The ending point
      Returns:
      true if there is visibility between the points
    • raytrace

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

      public void raytrace(int count, double[] src, double[] dst, boolean[] hitsOut, double[] hitPosOut)
    • passable

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

      public void cancel()
    • destroy

      public void destroy()
    • acquireReadLock

      public void acquireReadLock()
    • tryAcquireReadLock

      public boolean tryAcquireReadLock()
    • releaseReadLock

      public void releaseReadLock()
    • getMaxHeight

      public int getMaxHeight()