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 buffer) boolean
void
void
updateBest
(float heuristic, Node node) 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 x, int y, int z)
-
-
Method Details
-
updateBest
-
getBestNode
-
setReached
public void setReached() -
isReached
public boolean isReached() -
createFromStream
-