public class GoalTwoBlocks extends java.lang.Object implements Goal, IGoalRenderPos
BlockPos is at to or above the specified position for this goal.| Modifier and Type | Field and Description |
|---|---|
protected int |
x
The X block position of this goal
|
protected int |
y
The Y block position of this goal
|
protected int |
z
The Z block position of this goal
|
| Constructor and Description |
|---|
GoalTwoBlocks(net.minecraft.util.math.BlockPos pos) |
GoalTwoBlocks(int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
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() |
protected final int x
protected final int y
protected final int z
public GoalTwoBlocks(net.minecraft.util.math.BlockPos pos)
public GoalTwoBlocks(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 net.minecraft.util.math.BlockPos getGoalPos()
getGoalPos in interface IGoalRenderPospublic java.lang.String toString()
toString in class java.lang.Object