Class PathFinder

java.lang.Object
net.minecraft.src.PathFinder

public class PathFinder extends Object
  • Constructor Details

    • PathFinder

      public PathFinder(IBlockAccess par1IBlockAccess, boolean par2, boolean par3, boolean par4, boolean par5)
  • Method Details

    • createEntityPathTo

      public PathEntity createEntityPathTo(Entity par1Entity, Entity par2Entity, float par3)
      Creates a path from one entity to another within a minimum distance
    • createEntityPathTo

      public PathEntity createEntityPathTo(Entity par1Entity, int par2, int par3, int par4, float par5)
      Creates a path from an entity to a specified location within a minimum distance
    • getVerticalOffset

      public int getVerticalOffset(Entity par1Entity, int par2, int par3, int par4, PathPoint par5PathPoint)
      Checks if an entity collides with blocks at a position. Returns 1 if clear, 0 for colliding with any solid block, -1 for water(if avoiding water) but otherwise clear, -2 for lava, -3 for fence, -4 for closed trapdoor, 2 if otherwise clear except for open trapdoor or water(if not avoiding)
    • func_82565_a

      public static int func_82565_a(Entity par0Entity, int par1, int par2, int par3, PathPoint par4PathPoint, boolean par5, boolean par6, boolean par7)
    • getPathWeightAtLocation

      public int getPathWeightAtLocation(Entity entity, int i, int j, int k, PathPoint pathPoint)
    • CanPathThroughClosedWoodDoor

      public boolean CanPathThroughClosedWoodDoor()
    • canPathThroughOpenWoodDoor

      public boolean canPathThroughOpenWoodDoor()
    • canPathThroughWater

      public boolean canPathThroughWater()