public class Path
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PathPoint[] |
getClosedSet() |
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
Vec3d |
getCurrentPos() |
PathPoint |
getFinalPathPoint()
returns the last PathPoint of the Array
|
PathPoint[] |
getOpenSet() |
PathPoint |
getPathPointFromIndex(int index)
return the PathPoint located at the specified PathIndex, usually the current one
|
Vec3d |
getPosition(Entity entityIn)
returns the current PathEntity target node as Vec3D
|
PathPoint |
getTarget() |
Vec3d |
getVectorFromIndex(Entity entityIn,
int index)
Gets the vector of the PathPoint associated with the given index.
|
void |
incrementPathIndex()
Directs this path to the next point in its array
|
boolean |
isFinished()
Returns true if this path has reached the end
|
boolean |
isSamePath(Path pathentityIn)
Returns true if the EntityPath are the same.
|
static Path |
read(PacketBuffer buf) |
void |
setCurrentPathIndex(int currentPathIndexIn) |
void |
setCurrentPathLength(int length) |
void |
setPoint(int index,
PathPoint point) |
public Path(PathPoint[] pathpoints)
public void incrementPathIndex()
public boolean isFinished()
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 getVectorFromIndex(Entity entityIn, int index)
public Vec3d getPosition(Entity entityIn)
public Vec3d getCurrentPos()
public boolean isSamePath(Path pathentityIn)
public PathPoint[] getOpenSet()
public PathPoint[] getClosedSet()
public PathPoint getTarget()
public static Path read(PacketBuffer buf)