Constructor and Description |
---|
GoalXZ(BetterBlockPos pos) |
GoalXZ(int x,
int z) |
Modifier and Type | Method and Description |
---|---|
static double |
calculate(double xDiff,
double zDiff) |
static GoalXZ |
fromDirection(net.minecraft.util.math.Vec3d origin,
float yaw,
double distance) |
int |
getX() |
int |
getZ() |
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() |
public GoalXZ(int x, int z)
public GoalXZ(BetterBlockPos pos)
public boolean isInGoal(int x, int y, int z)
Goal
public double heuristic(int x, int y, int z)
Goal
public java.lang.String toString()
toString
in class java.lang.Object
public static double calculate(double xDiff, double zDiff)
public static GoalXZ fromDirection(net.minecraft.util.math.Vec3d origin, float yaw, double distance)
public int getX()
public int getZ()