public class GoalBlock extends java.lang.Object implements Goal, IGoalRenderPos
| Modifier and Type | Field and Description |
|---|---|
int |
x
The X block position of this goal
|
int |
y
The Y block position of this goal
|
int |
z
The Z block position of this goal
|
| Constructor and Description |
|---|
GoalBlock(net.minecraft.util.math.BlockPos pos) |
GoalBlock(int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculate(double xDiff,
int yDiff,
double zDiff) |
net.minecraft.util.math.BlockPos |
getGoalPos() |
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 GoalBlock(net.minecraft.util.math.BlockPos pos)
public GoalBlock(int x, int y, int z)
public boolean isInGoal(int x, int y, int z)
Goalpublic double heuristic(int x, int y, int z)
Goalpublic java.lang.String toString()
toString in class java.lang.Objectpublic net.minecraft.util.math.BlockPos getGoalPos()
getGoalPos in interface IGoalRenderPosBlockPospublic static double calculate(double xDiff, int yDiff, double zDiff)