public class PathEntity extends Object
Constructor and Description |
---|
PathEntity(PathPoint[] par1ArrayOfPathPoint) |
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
PathPoint |
getFinalPathPoint()
returns the last PathPoint of the Array
|
PathPoint |
getPathPointFromIndex(int par1)
return the PathPoint located at the specified PathIndex, usually the current one
|
Vec3 |
getPosition(Entity par1Entity)
returns the current PathEntity target node as Vec3D
|
Vec3 |
getVectorFromIndex(Entity par1Entity,
int par2)
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 par1Vec3)
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 par1PathEntity)
Returns true if the EntityPath are the same.
|
void |
setCurrentPathIndex(int par1) |
void |
setCurrentPathLength(int par1) |
public PathEntity(PathPoint[] par1ArrayOfPathPoint)
public void incrementPathIndex()
public boolean isFinished()
public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int par1)
public int getCurrentPathLength()
public void setCurrentPathLength(int par1)
public int getCurrentPathIndex()
public void setCurrentPathIndex(int par1)
public Vec3 getVectorFromIndex(Entity par1Entity, int par2)
public Vec3 getPosition(Entity par1Entity)
public boolean isSamePath(PathEntity par1PathEntity)
public boolean isDestinationSame(Vec3 par1Vec3)