public class Path
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PathPoint[] |
closedSet |
private int |
currentPathIndex |
private java.util.Set<FlaggedPathPoint> |
field_224772_d |
private float |
field_224773_g |
private boolean |
field_224774_h |
private PathPoint[] |
openSet |
private java.util.List<PathPoint> |
points |
private BlockPos |
target |
Constructor and Description |
---|
Path(java.util.List<PathPoint> p_i51804_1_,
BlockPos p_i51804_2_,
boolean p_i51804_3_) |
Modifier and Type | Method and Description |
---|---|
java.util.List<PathPoint> |
func_215746_d() |
float |
func_224769_l() |
PathPoint[] |
getClosedSet() |
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
Vec3d |
getCurrentPos() |
PathPoint |
getFinalPathPoint() |
PathPoint[] |
getOpenSet() |
PathPoint |
getPathPointFromIndex(int index) |
Vec3d |
getPosition(Entity entityIn) |
BlockPos |
getTarget() |
Vec3d |
getVectorFromIndex(Entity entityIn,
int index) |
void |
incrementPathIndex() |
boolean |
isFinished() |
boolean |
isSamePath(Path pathentityIn) |
boolean |
reachesTarget() |
static Path |
read(PacketBuffer buf) |
void |
setCurrentPathIndex(int currentPathIndexIn) |
void |
setCurrentPathLength(int p_215747_1_) |
void |
setPoint(int index,
PathPoint point) |
java.lang.String |
toString() |
private final java.util.List<PathPoint> points
private PathPoint[] openSet
private PathPoint[] closedSet
private java.util.Set<FlaggedPathPoint> field_224772_d
private int currentPathIndex
private final BlockPos target
private final float field_224773_g
private final boolean field_224774_h
public void incrementPathIndex()
public boolean isFinished()
@Nullable public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int index)
public java.util.List<PathPoint> func_215746_d()
public void setCurrentPathLength(int p_215747_1_)
public void setPoint(int index, PathPoint point)
public int getCurrentPathLength()
public int getCurrentPathIndex()
public void setCurrentPathIndex(int currentPathIndexIn)
public Vec3d getCurrentPos()
public boolean isSamePath(@Nullable Path pathentityIn)
public boolean reachesTarget()
public PathPoint[] getOpenSet()
public PathPoint[] getClosedSet()
public static Path read(PacketBuffer buf)
public java.lang.String toString()
toString
in class java.lang.Object
public BlockPos getTarget()
public float func_224769_l()