Class Path
java.lang.Object
net.minecraft.world.level.pathfinder.Path
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate Path.DebugData
private final float
private int
private final boolean
private final BlockPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
boolean
canReach()
copy()
static Path
createFromStream
(FriendlyByteBuf p_77391_) float
getEntityPosAtNode
(Entity p_77383_, int p_77384_) getNextEntityPos
(Entity p_77381_) int
getNode
(int p_77376_) int
getNodePos
(int p_77397_) boolean
isDone()
boolean
(package private) static Node[]
readNodeArray
(FriendlyByteBuf p_294398_) void
replaceNode
(int p_77378_, Node p_77379_) boolean
(package private) void
void
setNextNodeIndex
(int p_77394_) toString()
void
truncateNodes
(int p_77389_) (package private) static void
writeNodeArray
(FriendlyByteBuf p_296066_, Node[] p_294231_) void
writeToStream
(FriendlyByteBuf p_164705_)
-
Field Details
-
nodes
-
debugData
-
nextNodeIndex
private int nextNodeIndex -
target
-
distToTarget
private final float distToTarget -
reached
private final boolean reached
-
-
Constructor Details
-
Path
-
-
Method Details
-
advance
public void advance() -
notStarted
public boolean notStarted() -
isDone
public boolean isDone() -
getEndNode
-
getNode
-
truncateNodes
public void truncateNodes(int p_77389_) -
replaceNode
-
getNodeCount
public int getNodeCount() -
getNextNodeIndex
public int getNextNodeIndex() -
setNextNodeIndex
public void setNextNodeIndex(int p_77394_) -
getEntityPosAtNode
-
getNodePos
-
getNextEntityPos
-
getNextNodePos
-
getNextNode
-
getPreviousNode
-
sameAs
-
canReach
public boolean canReach() -
setDebug
-
debugData
-
writeToStream
-
createFromStream
-
toString
-
getTarget
-
getDistToTarget
public float getDistToTarget() -
readNodeArray
-
writeNodeArray
-
copy
-