Package-level declarations
Types
Link copied to clipboard
An A* route search over nodes N that runs in slices of Limits.visitedNodesPerSlice within limits.
Link copied to clipboard
class BackgroundSearch<T>(level: () -> Level?, newTerrain: (LevelBlocks) -> Terrain = ::Terrain, executor: Executor = ForkJoinPool.commonPool())
Runs one route search at a time on executor, a slice per poll. The search reads a copy of its region of level through the terrain newTerrain makes, and starts over when a block it looked at changes. The owner reports changes with blockChanged and levelChanged.
Link copied to clipboard
From LiquidBounce: Goal.kt
Link copied to clipboard
interface Destination
Where a route should end, in blocks the feet are in.
Link copied to clipboard
From LiquidBounce: RouteSearch.kt
Link copied to clipboard
Link copied to clipboard
class Replanner<T>(level: () -> Level?, verticalMargin: Int, newTerrain: (LevelBlocks) -> Terrain = ::Terrain, executor: Executor = ForkJoinPool.commonPool())
Searches routes for a navigator whose goal is given anew every tick. Goals beyond half the route length or in chunks not loaded are searched in stages. The owner reports changes of level with blockChanged and levelChanged.
Link copied to clipboard
class StageDestination(val goal: Destination, start: Vec3, range: Double, terrain: Terrain) : Destination