类 Path
java.lang.Object
net.minecraft.world.level.pathfinder.Path
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
advance()
boolean
canReach()
static Path
Node[]
float
getEntityPosAtNode
(Entity pEntity, int pIndex) getNextEntityPos
(Entity pEntity) int
getNode
(int pIndex) int
getNodePos
(int pIndex) Node[]
boolean
isDone()
boolean
void
replaceNode
(int pIndex, Node pPoint) boolean
(专用程序包) void
void
setNextNodeIndex
(int pCurrentPathIndex) toString()
void
truncateNodes
(int pLength) void
writeToStream
(FriendlyByteBuf pBuffer)
-
字段详细资料
-
nodes
-
openSet
-
closedSet
-
targetNodes
-
nextNodeIndex
private int nextNodeIndex -
target
-
distToTarget
private final float distToTarget -
reached
private final boolean reached
-
-
构造器详细资料
-
Path
-
-
方法详细资料
-
advance
public void advance() -
notStarted
public boolean notStarted() -
isDone
public boolean isDone() -
getEndNode
-
getNode
-
truncateNodes
public void truncateNodes(int pLength) -
replaceNode
-
getNodeCount
public int getNodeCount() -
getNextNodeIndex
public int getNextNodeIndex() -
setNextNodeIndex
public void setNextNodeIndex(int pCurrentPathIndex) -
getEntityPosAtNode
-
getNodePos
-
getNextEntityPos
-
getNextNodePos
-
getNextNode
-
getPreviousNode
-
sameAs
-
canReach
public boolean canReach() -
setDebug
-
getOpenSet
-
getClosedSet
-
writeToStream
-
createFromStream
-
toString
-
getTarget
-
getDistToTarget
public float getDistToTarget()
-