Package net.minecraft.entity.ai.pathing
Class Path
java.lang.Object
net.minecraft.entity.ai.pathing.Path
public class Path extends Object
-
Field Summary
Fields Modifier and Type Field Description private int
currentNodeIndex
private Set<TargetPathNode>
field_20300
private PathNode[]
field_55
private PathNode[]
field_57
private float
manhattanDistanceFromTarget
private List<PathNode>
nodes
private boolean
reachesTarget
private BlockPos
target
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equalsPath(Path path)
static Path
fromBuffer(PacketByteBuf buffer)
int
getCurrentNodeIndex()
PathNode
getEnd()
int
getLength()
float
getManhattanDistanceFromTarget()
PathNode
getNode(int index)
Vec3d
getNodePosition(Entity entity)
Vec3d
getNodePosition(Entity entity, int index)
BlockPos
getTarget()
boolean
isFinished()
PathNode[]
method_22880()
PathNode[]
method_22881()
PathNode
method_29301()
boolean
method_30849()
PathNode
method_30850()
BlockPos
method_31031(int int2)
BlockPos
method_31032()
void
next()
boolean
reachesTarget()
void
setCurrentNodeIndex(int index)
void
setLength(int length)
void
setNode(int index, PathNode node)
String
toString()
-
Field Details
-
nodes
-
field_57
-
field_55
-
field_20300
-
currentNodeIndex
private int currentNodeIndex -
target
-
manhattanDistanceFromTarget
private final float manhattanDistanceFromTarget -
reachesTarget
private final boolean reachesTarget
-
-
Constructor Details
-
Path
-
-
Method Details
-
next
public void next() -
method_30849
public boolean method_30849() -
isFinished
public boolean isFinished() -
getEnd
-
getNode
-
setLength
public void setLength(int length) -
setNode
-
getLength
public int getLength() -
getCurrentNodeIndex
public int getCurrentNodeIndex() -
setCurrentNodeIndex
public void setCurrentNodeIndex(int index) -
getNodePosition
-
method_31031
-
getNodePosition
-
method_31032
-
method_29301
-
method_30850
-
equalsPath
-
reachesTarget
public boolean reachesTarget() -
method_22880
-
method_22881
-
fromBuffer
-
toString
-
getTarget
-
getManhattanDistanceFromTarget
public float getManhattanDistanceFromTarget()
-