public class GoalStrictDirection extends java.lang.Object implements Goal
Constructor and Description |
---|
GoalStrictDirection(net.minecraft.util.math.BlockPos origin,
net.minecraft.util.EnumFacing direction) |
Modifier and Type | Method and Description |
---|---|
double |
heuristic()
Returns the heuristic at the goal.
|
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 final int x
public final int y
public final int z
public final int dx
public final int dz
public GoalStrictDirection(net.minecraft.util.math.BlockPos origin, net.minecraft.util.EnumFacing direction)
public boolean isInGoal(int x, int y, int z)
Goal
public double heuristic(int x, int y, int z)
Goal
public double heuristic()
Goal
heuristic() == heuristic(x,y,z)
when isInGoal(x,y,z) == true
This is needed by PathingBehavior#estimatedTicksToGoal
because
some Goals actually do not have a heuristic of 0 when that condition is metpublic java.lang.String toString()
toString
in class java.lang.Object