public class GoalYLevel extends java.lang.Object implements Goal, ActionCosts
Modifier and Type | Field and Description |
---|---|
int |
level
The target Y level
|
CENTER_AFTER_FALL_COST, COST_INF, FALL_0_25_BLOCKS_COST, FALL_1_25_BLOCKS_COST, FALL_N_BLOCKS_COST, JUMP_ONE_BLOCK_COST, LADDER_DOWN_ONE_COST, LADDER_UP_ONE_COST, SNEAK_ONE_BLOCK_COST, SPRINT_MULTIPLIER, SPRINT_ONE_BLOCK_COST, WALK_OFF_BLOCK_COST, WALK_ONE_BLOCK_COST, WALK_ONE_IN_WATER_COST, WALK_ONE_OVER_SOUL_SAND_COST
Constructor and Description |
---|
GoalYLevel(int level) |
Modifier and Type | Method and Description |
---|---|
static double |
calculate(int goalY,
int currentY) |
double |
heuristic(int x,
int y,
int z)
Estimate the number of ticks it will take to get to the goal
|
boolean |
isInGoal(int x,
int y,
int z)
Returns whether or not the specified position
meets the requirement for this goal based.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
distanceToTicks, generateFallNBlocksCost, oldFormula, velocity
public final int level
public GoalYLevel(int level)
public boolean isInGoal(int x, int y, int z)
Goal
public double heuristic(int x, int y, int z)
Goal
public static double calculate(int goalY, int currentY)
public java.lang.String toString()
toString
in class java.lang.Object