public class Path
extends java.lang.Object
コンストラクタと説明 |
---|
Path(java.util.List<PathPoint> p_i51804_1_,
BlockPos p_i51804_2_,
boolean p_i51804_3_) |
修飾子とタイプ | メソッドと説明 |
---|---|
java.util.List<PathPoint> |
func_215746_d() |
float |
func_224769_l() |
BlockPos |
func_224770_k() |
boolean |
func_224771_h() |
PathPoint[] |
getClosedSet() |
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
Vec3d |
getCurrentPos() |
PathPoint |
getFinalPathPoint()
returns the last PathPoint of the Array
|
PathPoint[] |
getOpenSet() |
PathPoint |
getPathPointFromIndex(int index)
return the PathPoint located at the specified PathIndex, usually the current one
|
Vec3d |
getPosition(Entity entityIn)
returns the current PathEntity target node as Vec3D
|
Vec3d |
getVectorFromIndex(Entity entityIn,
int index)
Gets the vector of the PathPoint associated with the given index.
|
void |
incrementPathIndex()
Directs this path to the next point in its array
|
boolean |
isFinished()
Returns true if this path has reached the end
|
boolean |
isSamePath(Path pathentityIn)
Returns true if the EntityPath are the same.
|
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() |
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 getVectorFromIndex(Entity entityIn, int index)
public Vec3d getPosition(Entity entityIn)
public Vec3d getCurrentPos()
public boolean isSamePath(@Nullable Path pathentityIn)
public boolean func_224771_h()
public PathPoint[] getOpenSet()
public PathPoint[] getClosedSet()
public static Path read(PacketBuffer buf)
public java.lang.String toString()
toString
クラス内 java.lang.Object
public BlockPos func_224770_k()
public float func_224769_l()