public class PathEntity
extends java.lang.Object
Constructor and Description |
---|
PathEntity(PathPoint[] pathpoints) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
PathPoint |
getFinalPathPoint()
returns the last PathPoint of the Array
|
PathPoint |
getPathPointFromIndex(int index)
return the PathPoint located at the specified PathIndex, usually the current one
|
Vec3 |
getPosition(Entity entityIn)
returns the current PathEntity target node as Vec3D
|
Vec3 |
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 |
isDestinationSame(Vec3 vec)
Returns true if the final PathPoint in the PathEntity is equal to Vec3D coords.
|
boolean |
isFinished()
Returns true if this path has reached the end
|
boolean |
isSamePath(PathEntity pathentityIn)
Returns true if the EntityPath are the same.
|
void |
setCurrentPathIndex(int currentPathIndexIn) |
void |
setCurrentPathLength(int length) |
public PathEntity(PathPoint[] pathpoints)
public void incrementPathIndex()
public boolean isFinished()
public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int index)
public int getCurrentPathLength()
public void setCurrentPathLength(int length)
public int getCurrentPathIndex()
public void setCurrentPathIndex(int currentPathIndexIn)
public Vec3 getVectorFromIndex(Entity entityIn, int index)
public Vec3 getPosition(Entity entityIn)
public boolean isSamePath(PathEntity pathentityIn)
public boolean isDestinationSame(Vec3 vec)