Package net.minecraft.pathfinding
Class Path
java.lang.Object
net.minecraft.pathfinding.Path
-
Field Summary
Modifier and TypeFieldDescriptionprivate PathPoint[]
private final float
private int
private PathPoint[]
private final boolean
private final BlockPos
private Set<FlaggedPathPoint>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
advance()
boolean
canReach()
static Path
createFromStream
(PacketBuffer p_186311_0_) float
getEntityPosAtNode
(Entity p_75881_1_, int p_75881_2_) getNextEntityPos
(Entity p_75878_1_) int
getNode
(int p_75877_1_) int
getNodePos
(int p_242947_1_) boolean
isDone()
boolean
void
replaceNode
(int p_186309_1_, PathPoint p_186309_2_) boolean
void
setNextNodeIndex
(int p_75872_1_) toString()
void
truncateNodes
(int p_215747_1_)
-
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_215747_1_) -
replaceNode
-
getNodeCount
public int getNodeCount() -
getNextNodeIndex
public int getNextNodeIndex() -
setNextNodeIndex
public void setNextNodeIndex(int p_75872_1_) -
getEntityPosAtNode
-
getNodePos
-
getNextEntityPos
-
getNextNodePos
-
getNextNode
-
getPreviousNode
-
sameAs
-
canReach
public boolean canReach() -
getOpenSet
-
getClosedSet
-
createFromStream
-
toString
-
getTarget
-
getDistToTarget
public float getDistToTarget()
-