Package net.minecraft.src
Class PathEntity
java.lang.Object
net.minecraft.src.PathEntity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintreturns the last PathPoint of the ArraygetPathPointFromIndex(int par1) return the PathPoint located at the specified PathIndex, usually the current onegetPosition(Entity par1Entity) returns the current PathEntity target node as Vec3DgetVectorFromIndex(Entity par1Entity, int par2) Gets the vector of the PathPoint associated with the given index.voidDirects this path to the next point in its arraybooleanisDestinationSame(Vec3 par1Vec3) Returns true if the final PathPoint in the PathEntity is equal to Vec3D coords.booleanReturns true if this path has reached the endbooleanisSamePath(PathEntity par1PathEntity) Returns true if the EntityPath are the same.voidsetCurrentPathIndex(int par1) voidsetCurrentPathLength(int par1)
-
Constructor Details
-
PathEntity
-
-
Method Details
-
incrementPathIndex
public void incrementPathIndex()Directs this path to the next point in its array -
isFinished
public boolean isFinished()Returns true if this path has reached the end -
getFinalPathPoint
returns the last PathPoint of the Array -
getPathPointFromIndex
return the PathPoint located at the specified PathIndex, usually the current one -
getCurrentPathLength
public int getCurrentPathLength() -
setCurrentPathLength
public void setCurrentPathLength(int par1) -
getCurrentPathIndex
public int getCurrentPathIndex() -
setCurrentPathIndex
public void setCurrentPathIndex(int par1) -
getVectorFromIndex
Gets the vector of the PathPoint associated with the given index. -
getPosition
returns the current PathEntity target node as Vec3D -
isSamePath
Returns true if the EntityPath are the same. Non instance related equals. -
isDestinationSame
Returns true if the final PathPoint in the PathEntity is equal to Vec3D coords.
-