YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.pathfinding.PathEntity Class Reference

Public Member Functions

 PathEntity (PathPoint[] par1ArrayOfPathPoint)
 
void incrementPathIndex ()
 
boolean isFinished ()
 
PathPoint getFinalPathPoint ()
 
PathPoint getPathPointFromIndex (int par1)
 
int getCurrentPathLength ()
 
void setCurrentPathLength (int par1)
 
int getCurrentPathIndex ()
 
void setCurrentPathIndex (int par1)
 
Vec3 getVectorFromIndex (Entity par1Entity, int par2)
 
Vec3 getPosition (Entity par1Entity)
 
boolean isSamePath (PathEntity par1PathEntity)
 
boolean isDestinationSame (Vec3 par1Vec3)
 

Constructor & Destructor Documentation

net.minecraft.pathfinding.PathEntity.PathEntity ( PathPoint[]  par1ArrayOfPathPoint)

Member Function Documentation

int net.minecraft.pathfinding.PathEntity.getCurrentPathIndex ( )
int net.minecraft.pathfinding.PathEntity.getCurrentPathLength ( )
PathPoint net.minecraft.pathfinding.PathEntity.getFinalPathPoint ( )

returns the last PathPoint of the Array

PathPoint net.minecraft.pathfinding.PathEntity.getPathPointFromIndex ( int  par1)

return the PathPoint located at the specified PathIndex, usually the current one

Vec3 net.minecraft.pathfinding.PathEntity.getPosition ( Entity  par1Entity)

returns the current PathEntity target node as Vec3D

Vec3 net.minecraft.pathfinding.PathEntity.getVectorFromIndex ( Entity  par1Entity,
int  par2 
)

Gets the vector of the PathPoint associated with the given index.

void net.minecraft.pathfinding.PathEntity.incrementPathIndex ( )

Directs this path to the next point in its array

boolean net.minecraft.pathfinding.PathEntity.isDestinationSame ( Vec3  par1Vec3)

Returns true if the final PathPoint in the PathEntity is equal to Vec3D coords.

boolean net.minecraft.pathfinding.PathEntity.isFinished ( )

Returns true if this path has reached the end

boolean net.minecraft.pathfinding.PathEntity.isSamePath ( PathEntity  par1PathEntity)

Returns true if the EntityPath are the same. Non instance related equals.

void net.minecraft.pathfinding.PathEntity.setCurrentPathIndex ( int  par1)
void net.minecraft.pathfinding.PathEntity.setCurrentPathLength ( int  par1)

The documentation for this class was generated from the following file: