Class Target
java.lang.Object
net.minecraft.world.level.pathfinder.Node
net.minecraft.world.level.pathfinder.Target
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate float
private Node
The nearest path point of the path that is constructedprivate boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Target
createFromStream
(FriendlyByteBuf pBuffer) boolean
void
void
updateBest
(float pHeuristic, Node pNode) Methods inherited from class net.minecraft.world.level.pathfinder.Node
asBlockPos, asVec3, cloneAndMove, createHash, distanceManhattan, distanceManhattan, distanceTo, distanceTo, distanceToSqr, distanceToSqr, distanceToXZ, equals, hashCode, inOpenSet, readContents, toString, writeToStream
-
Field Details
-
bestHeuristic
private float bestHeuristic -
bestNode
The nearest path point of the path that is constructed -
reached
private boolean reached
-
-
Constructor Details
-
Target
-
Target
public Target(int pX, int pY, int pZ)
-
-
Method Details
-
updateBest
-
getBestNode
-
setReached
public void setReached() -
isReached
public boolean isReached() -
createFromStream
-