public class PathEntity
extends java.lang.Object
| Constructor and Description |
|---|
PathEntity(PathPoint[] p_i2136_1_) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
PathPoint |
getFinalPathPoint()
returns the last PathPoint of the Array
|
PathPoint |
getPathPointFromIndex(int p_75877_1_)
return the PathPoint located at the specified PathIndex, usually the current one
|
Vec3 |
getPosition(Entity p_75878_1_)
returns the current PathEntity target node as Vec3D
|
Vec3 |
getVectorFromIndex(Entity p_75881_1_,
int p_75881_2_)
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 p_75880_1_)
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 p_75876_1_)
Returns true if the EntityPath are the same.
|
void |
setCurrentPathIndex(int p_75872_1_) |
void |
setCurrentPathLength(int p_75871_1_) |
public PathEntity(PathPoint[] p_i2136_1_)
public void incrementPathIndex()
public boolean isFinished()
public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int p_75877_1_)
public int getCurrentPathLength()
public void setCurrentPathLength(int p_75871_1_)
public int getCurrentPathIndex()
public void setCurrentPathIndex(int p_75872_1_)
public Vec3 getVectorFromIndex(Entity p_75881_1_, int p_75881_2_)
public Vec3 getPosition(Entity p_75878_1_)
public boolean isSamePath(PathEntity p_75876_1_)
public boolean isDestinationSame(Vec3 p_75880_1_)