Class PathNavigate

java.lang.Object
net.minecraft.src.PathNavigate

public class PathNavigate extends Object
  • Constructor Details

    • PathNavigate

      public PathNavigate(EntityLiving par1EntityLiving, World par2World)
  • 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

      public PathEntity getPathToXYZ(double par1, double par3, double par5)
      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

      public PathEntity getPathToEntityLiving(Entity par1Entity)
      Returns the path to the given EntityLiving
    • tryMoveToEntityLiving

      public boolean tryMoveToEntityLiving(Entity par1Entity, double par2)
      Try to find and set a path to EntityLiving. Returns true if successful.
    • setPath

      public boolean setPath(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 coords
    • getPath

      public PathEntity getPath()
      gets the actively used PathEntity
    • onUpdateNavigation

      public void onUpdateNavigation()
    • 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

      public PathEntity getPathToXYZ(int i, int j, int k)
    • getPathToEntity

      public PathEntity getPathToEntity(Entity toEntity)
    • tryMoveToEntity

      public boolean tryMoveToEntity(Entity toEntity, float fMoveSpeed)