public class TargetPathNode extends PathNode
| Modifier and Type | Field and Description |
|---|---|
private PathNode |
nearestNode |
private float |
nearestNodeDistance |
private boolean |
reached |
distanceToNearestTarget, heapIndex, heapWeight, pathLength, penalizedPathLength, penalty, previous, type, visited, x, y, z| Constructor and Description |
|---|
TargetPathNode(int x,
int y,
int z) |
TargetPathNode(PathNode node) |
| Modifier and Type | Method and Description |
|---|---|
static TargetPathNode |
fromBuffer(PacketByteBuf buffer) |
PathNode |
getNearestNode() |
void |
markReached() |
void |
updateNearestNode(float distance,
PathNode node) |
copyWithNewPosition, equals, getDistance, getManhattanDistance, getManhattanDistance, getPos, getSquaredDistance, hash, hashCode, isInHeap, toStringprivate float nearestNodeDistance
private PathNode nearestNode
private boolean reached
public TargetPathNode(PathNode node)
@Environment(value=CLIENT)
public TargetPathNode(int x,
int y,
int z)
public void updateNearestNode(float distance,
PathNode node)
public PathNode getNearestNode()
public void markReached()
@Environment(value=CLIENT) public static TargetPathNode fromBuffer(PacketByteBuf buffer)