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

Public Member Functions

 PathNavigate (EntityLiving par1EntityLiving, World par2World, float par3)
 
void setAvoidsWater (boolean par1)
 
boolean getAvoidsWater ()
 
void setBreakDoors (boolean par1)
 
void setEnterDoors (boolean par1)
 
boolean getCanBreakDoors ()
 
void setAvoidSun (boolean par1)
 
void setSpeed (float par1)
 
void setCanSwim (boolean par1)
 
PathEntity getPathToXYZ (double par1, double par3, double par5)
 
boolean tryMoveToXYZ (double par1, double par3, double par5, float par7)
 
PathEntity getPathToEntityLiving (EntityLiving par1EntityLiving)
 
boolean tryMoveToEntityLiving (EntityLiving par1EntityLiving, float par2)
 
boolean setPath (PathEntity par1PathEntity, float par2)
 
PathEntity getPath ()
 
void onUpdateNavigation ()
 
boolean noPath ()
 
void clearPathEntity ()
 

Constructor & Destructor Documentation

net.minecraft.pathfinding.PathNavigate.PathNavigate ( EntityLiving  par1EntityLiving,
World  par2World,
float  par3 
)

Member Function Documentation

void net.minecraft.pathfinding.PathNavigate.clearPathEntity ( )

sets active PathEntity to null

boolean net.minecraft.pathfinding.PathNavigate.getAvoidsWater ( )
boolean net.minecraft.pathfinding.PathNavigate.getCanBreakDoors ( )

Returns true if the entity can break doors, false otherwise

PathEntity net.minecraft.pathfinding.PathNavigate.getPath ( )

gets the actively used PathEntity

PathEntity net.minecraft.pathfinding.PathNavigate.getPathToEntityLiving ( EntityLiving  par1EntityLiving)

Returns the path to the given EntityLiving

PathEntity net.minecraft.pathfinding.PathNavigate.getPathToXYZ ( double  par1,
double  par3,
double  par5 
)

Returns the path to the given coordinates

boolean net.minecraft.pathfinding.PathNavigate.noPath ( )

If null path or reached the end

void net.minecraft.pathfinding.PathNavigate.onUpdateNavigation ( )
void net.minecraft.pathfinding.PathNavigate.setAvoidSun ( boolean  par1)

Sets if the path should avoid sunlight

void net.minecraft.pathfinding.PathNavigate.setAvoidsWater ( boolean  par1)
void net.minecraft.pathfinding.PathNavigate.setBreakDoors ( boolean  par1)
void net.minecraft.pathfinding.PathNavigate.setCanSwim ( boolean  par1)

Sets if the entity can swim

void net.minecraft.pathfinding.PathNavigate.setEnterDoors ( boolean  par1)

Sets if the entity can enter open doors

boolean net.minecraft.pathfinding.PathNavigate.setPath ( PathEntity  par1PathEntity,
float  par2 
)

sets the active path data if path is 100% unique compared to old path, checks to adjust path for sun avoiding ents and stores end coords

void net.minecraft.pathfinding.PathNavigate.setSpeed ( float  par1)

Sets the speed

boolean net.minecraft.pathfinding.PathNavigate.tryMoveToEntityLiving ( EntityLiving  par1EntityLiving,
float  par2 
)

Try to find and set a path to EntityLiving. Returns true if successful.

boolean net.minecraft.pathfinding.PathNavigate.tryMoveToXYZ ( double  par1,
double  par3,
double  par5,
float  par7 
)

Try to find and set a path to XYZ. Returns true if successful.


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