Package net.minecraft.src
Class PathFinder
java.lang.Object
net.minecraft.src.PathFinder
-
Constructor Summary
ConstructorsConstructorDescriptionPathFinder(IBlockAccess par1IBlockAccess, boolean par2, boolean par3, boolean par4, boolean par5) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancreateEntityPathTo(Entity par1Entity, int par2, int par3, int par4, float par5) Creates a path from an entity to a specified location within a minimum distancecreateEntityPathTo(Entity par1Entity, Entity par2Entity, float par3) Creates a path from one entity to another within a minimum distancestatic intfunc_82565_a(Entity par0Entity, int par1, int par2, int par3, PathPoint par4PathPoint, boolean par5, boolean par6, boolean par7) intgetPathWeightAtLocation(Entity entity, int i, int j, int k, PathPoint pathPoint) intgetVerticalOffset(Entity par1Entity, int par2, int par3, int par4, PathPoint par5PathPoint) Checks if an entity collides with blocks at a position.
-
Constructor Details
-
PathFinder
public PathFinder(IBlockAccess par1IBlockAccess, boolean par2, boolean par3, boolean par4, boolean par5)
-
-
Method Details
-
createEntityPathTo
Creates a path from one entity to another within a minimum distance -
createEntityPathTo
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
-
getPathWeightAtLocation
-
CanPathThroughClosedWoodDoor
public boolean CanPathThroughClosedWoodDoor() -
canPathThroughOpenWoodDoor
public boolean canPathThroughOpenWoodDoor() -
canPathThroughWater
public boolean canPathThroughWater()
-