Package net.minecraft.entity.ai.pathing
Class PathNode
java.lang.Object
net.minecraft.entity.ai.pathing.PathNode
- Direct Known Subclasses:
TargetPathNode
public class PathNode extends Object
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description PathNode(int x, int y, int z)
-
Method Summary
Modifier and Type Method Description PathNode
copyWithNewPosition(int x, int y, int z)
boolean
equals(Object o)
static PathNode
fromBuffer(PacketByteBuf buffer)
float
getDistance(PathNode node)
float
getManhattanDistance(PathNode node)
float
getManhattanDistance(BlockPos pos)
BlockPos
getPos()
float
getSquaredDistance(PathNode node)
static int
hash(int x, int y, int z)
int
hashCode()
boolean
isInHeap()
String
toString()
-
Field Details
-
x
public final int x -
y
public final int y -
z
public final int z -
hashCode
private final int hashCode -
heapIndex
public int heapIndex -
penalizedPathLength
public float penalizedPathLength -
distanceToNearestTarget
public float distanceToNearestTarget -
heapWeight
public float heapWeight -
previous
-
visited
public boolean visited -
pathLength
public float pathLength -
penalty
public float penalty -
type
-
-
Constructor Details
-
PathNode
public PathNode(int x, int y, int z)
-
-
Method Details
-
copyWithNewPosition
-
hash
public static int hash(int x, int y, int z) -
getDistance
-
getSquaredDistance
-
getManhattanDistance
-
getManhattanDistance
-
getPos
-
equals
-
hashCode
public int hashCode() -
isInHeap
public boolean isInHeap() -
toString
-
fromBuffer
-