public class PathNode extends Object
Modifier and Type | Field and Description |
---|---|
float |
distanceToNearestTarget |
private int |
hashCode |
int |
heapIndex |
float |
heapWeight |
float |
pathLength |
float |
penalizedPathLength |
float |
penalty |
PathNode |
previous |
PathNodeType |
type |
boolean |
visited |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
PathNode(int x,
int y,
int z) |
Modifier and Type | Method and Description |
---|---|
PathNode |
copyWithNewPosition(int x,
int y,
int z) |
boolean |
equals(Object o) |
static PathNode |
fromBuffer(PacketByteBuf buffer) |
float |
getDistance(PathNode node) |
float |
getManhattanDistance(BlockPos pos) |
float |
getManhattanDistance(PathNode node) |
BlockPos |
getPos() |
float |
getSquaredDistance(PathNode node) |
static int |
hash(int x,
int y,
int z) |
int |
hashCode() |
boolean |
isInHeap() |
String |
toString() |
public final int x
public final int y
public final int z
private final int hashCode
public int heapIndex
public float penalizedPathLength
public float distanceToNearestTarget
public float heapWeight
public PathNode previous
public boolean visited
public float pathLength
public float penalty
public PathNodeType type
public PathNode copyWithNewPosition(int x, int y, int z)
public static int hash(int x, int y, int z)
public float getDistance(PathNode node)
public float getSquaredDistance(PathNode node)
public float getManhattanDistance(PathNode node)
public float getManhattanDistance(BlockPos pos)
public BlockPos getPos()
public boolean isInHeap()
@Environment(value=CLIENT) public static PathNode fromBuffer(PacketByteBuf buffer)