Class NetherPathfinderContext
java.lang.Object
com.zenith.feature.pathfinder.process.elytra.NetherPathfinderContext
- All Implemented Interfaces:
IElytraPathFinder
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voiddestroy()intbooleanbooleanpassable(int x, int y, int z) pathFindAsync(BlockPos src, BlockPos dst) voidqueueBlockUpdate(int x, int y, int z, int blockStateId) voidqueueCacheCulling(int chunkX, int chunkZ, int maxDistanceBlocks) voidqueueChunkUnload(int x, int z) voidqueueForPacking(Chunk chunkIn) booleanraytrace(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, returningtrueif there is visibility between the two points.voidraytrace(int count, double[] src, double[] dst, boolean[] hitsOut, double[] hitPosOut) booleanraytrace(int count, double[] src, double[] dst, int visibility) booleanraytrace(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, returningtrueif there is visibility between the two points.voidboolean
-
Field Details
-
rwl
-
readLock
-
writeLock
-
-
Constructor Details
-
NetherPathfinderContext
public NetherPathfinderContext()
-
-
Method Details
-
hasChunk
-
queueCacheCulling
public void queueCacheCulling(int chunkX, int chunkZ, int maxDistanceBlocks) -
queueForPacking
-
queueBlockUpdate
public void queueBlockUpdate(int x, int y, int z, int blockStateId) -
queueChunkUnload
public void queueChunkUnload(int x, int z) -
pathFindAsync
- Specified by:
pathFindAsyncin interfaceIElytraPathFinder
-
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, returningtrueif there is visibility between the two points.- Parameters:
startX- The start X coordinatestartY- The start Y coordinatestartZ- The start Z coordinateendX- The end X coordinateendY- The end Y coordinateendZ- The end Z coordinate- Returns:
trueif 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, returningtrueif there is visibility between the two points.- Parameters:
start- The starting pointend- The ending point- Returns:
trueif 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()
-