|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.pathfinding.PathEntity
public class PathEntity
Constructor Summary | |
---|---|
PathEntity(PathPoint[] par1ArrayOfPathPoint)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathEntity(PathPoint[] par1ArrayOfPathPoint)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |