Package net.minecraft.src
Class PathNavigate
java.lang.Object
net.minecraft.src.PathNavigate
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsets active PathEntity to nullfloatbooleanbooleanReturns true if the entity can break doors, false otherwisegetPath()gets the actively used PathEntitygetPathToEntity(Entity toEntity) getPathToEntityLiving(Entity par1Entity) Returns the path to the given EntityLivinggetPathToXYZ(double par1, double par3, double par5) Returns the path to the given coordinatesgetPathToXYZ(int i, int j, int k) booleannoPath()If null path or reached the endvoidvoidsetAvoidSun(boolean par1) Sets if the path should avoid sunlightvoidsetAvoidsWater(boolean par1) voidsetBreakDoors(boolean par1) voidsetCanSwim(boolean par1) Sets if the entity can swimvoidsetEnterDoors(boolean par1) Sets if the entity can enter open doorsbooleansetPath(PathEntity par1PathEntity, double 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 coordsvoidsetSpeed(double par1) Sets the speedbooleantryMoveToEntity(Entity toEntity, float fMoveSpeed) booleantryMoveToEntityLiving(Entity par1Entity, double par2) Try to find and set a path to EntityLiving.booleantryMoveToXYZ(double par1, double par3, double par5, double par7) Try to find and set a path to XYZ.booleantryMoveToXYZ(int i, int j, int k, float fSpeed)
-
Constructor Details
-
PathNavigate
-
-
Method Details
-
setAvoidsWater
public void setAvoidsWater(boolean par1) -
getAvoidsWater
public boolean getAvoidsWater() -
setBreakDoors
public void setBreakDoors(boolean par1) -
setEnterDoors
public void setEnterDoors(boolean par1) Sets if the entity can enter open doors -
getCanBreakDoors
public boolean getCanBreakDoors()Returns true if the entity can break doors, false otherwise -
setAvoidSun
public void setAvoidSun(boolean par1) Sets if the path should avoid sunlight -
setSpeed
public void setSpeed(double par1) Sets the speed -
setCanSwim
public void setCanSwim(boolean par1) Sets if the entity can swim -
func_111269_d
public float func_111269_d() -
getPathToXYZ
Returns the path to the given coordinates -
tryMoveToXYZ
public boolean tryMoveToXYZ(double par1, double par3, double par5, double par7) Try to find and set a path to XYZ. Returns true if successful. -
getPathToEntityLiving
Returns the path to the given EntityLiving -
tryMoveToEntityLiving
Try to find and set a path to EntityLiving. Returns true if successful. -
setPath
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 -
getPath
gets the actively used PathEntity -
noPath
public boolean noPath()If null path or reached the end -
clearPathEntity
public void clearPathEntity()sets active PathEntity to null -
tryMoveToXYZ
public boolean tryMoveToXYZ(int i, int j, int k, float fSpeed) -
getPathToXYZ
-
getPathToEntity
-
tryMoveToEntity
-