public class PathNavigate
extends java.lang.Object
| Constructor and Description |
|---|
PathNavigate(EntityLiving p_i1671_1_,
World p_i1671_2_) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPathEntity()
sets active PathEntity to null
|
boolean |
getAvoidsWater() |
boolean |
getCanBreakDoors()
Returns true if the entity can break doors, false otherwise
|
PathEntity |
getPath()
gets the actively used PathEntity
|
float |
getPathSearchRange()
Gets the maximum distance that the path finding will search in.
|
PathEntity |
getPathToEntityLiving(Entity p_75494_1_)
Returns the path to the given EntityLiving
|
PathEntity |
getPathToXYZ(double p_75488_1_,
double p_75488_3_,
double p_75488_5_)
Returns the path to the given coordinates
|
boolean |
noPath()
If null path or reached the end
|
void |
onUpdateNavigation() |
void |
setAvoidSun(boolean p_75504_1_)
Sets if the path should avoid sunlight
|
void |
setAvoidsWater(boolean p_75491_1_) |
void |
setBreakDoors(boolean p_75498_1_) |
void |
setCanSwim(boolean p_75495_1_)
Sets if the entity can swim
|
void |
setEnterDoors(boolean p_75490_1_)
Sets if the entity can enter open doors
|
boolean |
setPath(PathEntity p_75484_1_,
double p_75484_2_)
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 |
setSpeed(double p_75489_1_)
Sets the speed
|
boolean |
tryMoveToEntityLiving(Entity p_75497_1_,
double p_75497_2_)
Try to find and set a path to EntityLiving.
|
boolean |
tryMoveToXYZ(double p_75492_1_,
double p_75492_3_,
double p_75492_5_,
double p_75492_7_)
Try to find and set a path to XYZ.
|
public PathNavigate(EntityLiving p_i1671_1_, World p_i1671_2_)
public void setAvoidsWater(boolean p_75491_1_)
public boolean getAvoidsWater()
public void setBreakDoors(boolean p_75498_1_)
public void setEnterDoors(boolean p_75490_1_)
public boolean getCanBreakDoors()
public void setAvoidSun(boolean p_75504_1_)
public void setSpeed(double p_75489_1_)
public void setCanSwim(boolean p_75495_1_)
public float getPathSearchRange()
public PathEntity getPathToXYZ(double p_75488_1_, double p_75488_3_, double p_75488_5_)
public boolean tryMoveToXYZ(double p_75492_1_,
double p_75492_3_,
double p_75492_5_,
double p_75492_7_)
public PathEntity getPathToEntityLiving(Entity p_75494_1_)
public boolean tryMoveToEntityLiving(Entity p_75497_1_, double p_75497_2_)
public boolean setPath(PathEntity p_75484_1_, double p_75484_2_)
public PathEntity getPath()
public void onUpdateNavigation()
public boolean noPath()
public void clearPathEntity()