类 Path
java.lang.Object
net.minecraft.world.level.pathfinder.Path
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private Path.DebugData
private final float
private int
private final boolean
private final BlockPos
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
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
(专用程序包) static Node[]
readNodeArray
(FriendlyByteBuf p_300065_) void
replaceNode
(int p_77378_, Node p_77379_) boolean
(专用程序包) void
void
setNextNodeIndex
(int p_77394_) toString()
void
truncateNodes
(int p_77389_) (专用程序包) static void
writeNodeArray
(FriendlyByteBuf p_300557_, Node[] p_301136_) void
writeToStream
(FriendlyByteBuf p_164705_)
-
字段详细资料
-
nodes
-
debugData
-
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 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
-