Package net.minecraft.entity.ai.pathing
Class TargetPathNode
java.lang.Object
net.minecraft.entity.ai.pathing.PathNode
net.minecraft.entity.ai.pathing.TargetPathNode
public class TargetPathNode extends PathNode
-
Field Summary
Fields Modifier and Type Field Description private PathNodenearestNodeprivate floatnearestNodeDistanceprivate booleanreachedFields inherited from class net.minecraft.entity.ai.pathing.PathNode
distanceToNearestTarget, heapIndex, heapWeight, pathLength, penalizedPathLength, penalty, previous, type, visited, x, y, z -
Constructor Summary
Constructors Constructor Description TargetPathNode(int x, int y, int z)TargetPathNode(PathNode node) -
Method Summary
Modifier and Type Method Description static TargetPathNodefromBuffer(PacketByteBuf buffer)PathNodegetNearestNode()voidmarkReached()voidupdateNearestNode(float distance, PathNode node)Methods inherited from class net.minecraft.entity.ai.pathing.PathNode
copyWithNewPosition, equals, getDistance, getManhattanDistance, getManhattanDistance, getPos, getSquaredDistance, hash, hashCode, isInHeap, toString
-
Field Details
-
nearestNodeDistance
private float nearestNodeDistance -
nearestNode
-
reached
private boolean reached
-
-
Constructor Details
-
TargetPathNode
-
TargetPathNode
@Environment(CLIENT) public TargetPathNode(int x, int y, int z)
-
-
Method Details
-
updateNearestNode
-
getNearestNode
-
markReached
public void markReached() -
fromBuffer
-