Class Path
java.lang.Object
net.minecraft.world.level.pathfinder.Path
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
boolean
canReach()
static Path
createFromStream
(FriendlyByteBuf p_77391_) Node[]
float
getEntityPosAtNode
(Entity p_77383_, int p_77384_) getNextEntityPos
(Entity p_77381_) int
getNode
(int p_77376_) int
getNodePos
(int p_77397_) Node[]
boolean
isDone()
boolean
void
replaceNode
(int p_77378_, Node p_77379_) boolean
(package private) void
void
setNextNodeIndex
(int p_77394_) toString()
void
truncateNodes
(int p_77389_) void
writeToStream
(FriendlyByteBuf p_164705_)
-
Field Details
-
nodes
-
openSet
-
closedSet
-
targetNodes
-
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
-
getOpenSet
-
getClosedSet
-
writeToStream
-
createFromStream
-
toString
-
getTarget
-
getDistToTarget
public float getDistToTarget()
-