public interface ActionCosts
Modifier and Type | Field and Description |
---|---|
static double |
CENTER_AFTER_FALL_COST
To walk the rest of the way to be centered on the new block
|
static double |
COST_INF
don't make this Double.MAX_VALUE because it's added to other things, maybe other COST_INFs,
and that would make it overflow to negative
|
static double |
FALL_0_25_BLOCKS_COST |
static double |
FALL_1_25_BLOCKS_COST |
static double[] |
FALL_N_BLOCKS_COST |
static double |
JUMP_ONE_BLOCK_COST
When you hit space, you get enough upward velocity to go 1.25 blocks
Then, you fall the remaining 0.25 to get on the surface, on block higher.
|
static double |
LADDER_DOWN_ONE_COST |
static double |
LADDER_UP_ONE_COST |
static double |
SNEAK_ONE_BLOCK_COST |
static double |
SPRINT_MULTIPLIER |
static double |
SPRINT_ONE_BLOCK_COST |
static double |
WALK_OFF_BLOCK_COST
To walk off an edge you need to walk 0.5 to the edge then 0.3 to start falling off
|
static double |
WALK_ONE_BLOCK_COST
These costs are measured roughly in ticks btw
|
static double |
WALK_ONE_IN_WATER_COST |
static double |
WALK_ONE_OVER_SOUL_SAND_COST |
Modifier and Type | Method and Description |
---|---|
static double |
distanceToTicks(double distance) |
static double[] |
generateFallNBlocksCost() |
static double |
oldFormula(double ticks) |
static double |
velocity(int ticks) |
static final double WALK_ONE_BLOCK_COST
static final double WALK_ONE_IN_WATER_COST
static final double WALK_ONE_OVER_SOUL_SAND_COST
static final double LADDER_UP_ONE_COST
static final double LADDER_DOWN_ONE_COST
static final double SNEAK_ONE_BLOCK_COST
static final double SPRINT_ONE_BLOCK_COST
static final double SPRINT_MULTIPLIER
static final double WALK_OFF_BLOCK_COST
static final double CENTER_AFTER_FALL_COST
static final double COST_INF
static final double[] FALL_N_BLOCKS_COST
static final double FALL_1_25_BLOCKS_COST
static final double FALL_0_25_BLOCKS_COST
static final double JUMP_ONE_BLOCK_COST
static double[] generateFallNBlocksCost()
static double velocity(int ticks)
static double oldFormula(double ticks)
static double distanceToTicks(double distance)