Forecast

class Forecast(player: SimulatedPlayer)

The coming ticks of player, simulated when first asked for and kept, so every reader in a tick shares one simulation. Tick 0 is the player as it was handed over; the forecast ticks player itself, nothing else may. Safe to read from several threads.

From LiquidBounce: PlayerSimulationCache.kt

Constructors

Link copied to clipboard
constructor(player: SimulatedPlayer)

Properties

Link copied to clipboard
val input: SimulatedInput

The keys the forecast holds.

Functions

Link copied to clipboard
fun asSimulation(): PlayerSimulation

A PlayerSimulation that steps through this forecast instead of simulating again.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Every tick from tick 0 on, endless; each is simulated only when the sequence gets to it.

Link copied to clipboard

getSnapshotsBetween, each tick simulated only when the sequence gets to it.

Link copied to clipboard
fun simulateUntil(ticks: Int)

Simulates up to ticks ticks ahead, unless that was done already.