public class Path
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PathPoint[] |
closedSet |
private int |
currentPathIndex |
private PathPoint[] |
openSet |
private int |
pathLength |
private PathPoint[] |
points |
private PathPoint |
target |
Modifier and Type | Method and Description |
---|---|
PathPoint[] |
getClosedSet() |
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
Vec3d |
getCurrentPos() |
PathPoint |
getFinalPathPoint() |
PathPoint[] |
getOpenSet() |
PathPoint |
getPathPointFromIndex(int index) |
Vec3d |
getPosition(Entity entityIn) |
PathPoint |
getTarget() |
Vec3d |
getVectorFromIndex(Entity entityIn,
int index) |
void |
incrementPathIndex() |
boolean |
isFinished() |
boolean |
isSamePath(Path pathentityIn) |
static Path |
read(PacketBuffer buf) |
void |
setCurrentPathIndex(int currentPathIndexIn) |
void |
setCurrentPathLength(int length) |
void |
setPoint(int index,
PathPoint point) |
private final PathPoint[] points
private PathPoint[] openSet
private PathPoint[] closedSet
private PathPoint target
private int currentPathIndex
private int pathLength
public Path(PathPoint[] pathpoints)
public void incrementPathIndex()
public boolean isFinished()
@Nullable public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int index)
public void setPoint(int index, PathPoint point)
public int getCurrentPathLength()
public void setCurrentPathLength(int length)
public int getCurrentPathIndex()
public void setCurrentPathIndex(int currentPathIndexIn)
public Vec3d getCurrentPos()
public boolean isSamePath(Path pathentityIn)
public PathPoint[] getOpenSet()
public PathPoint[] getClosedSet()
public PathPoint getTarget()
public static Path read(PacketBuffer buf)