public class Path
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
getCurrentPathIndex() |
int |
getCurrentPathLength() |
Vec3d |
getCurrentPos() |
PathPoint |
getFinalPathPoint() |
PathPoint |
getPathPointFromIndex(int index) |
Vec3d |
getPosition(Entity entityIn) |
Vec3d |
getVectorFromIndex(Entity entityIn,
int index) |
void |
incrementPathIndex() |
boolean |
isDestinationSame(Vec3d vec) |
boolean |
isFinished() |
boolean |
isSamePath(Path pathentityIn) |
static Path |
read(PacketBuffer buf) |
void |
setCurrentPathIndex(int currentPathIndexIn) |
void |
setCurrentPathLength(int length) |
void |
setPoint(int index,
PathPoint point) |
public Path(PathPoint[] pathpoints)
public void incrementPathIndex()
public boolean isFinished()
public PathPoint getFinalPathPoint()
public PathPoint getPathPointFromIndex(int index)
public void setPoint(int index, PathPoint point)
public int getCurrentPathLength()
public void setCurrentPathLength(int length)
public int getCurrentPathIndex()
public void setCurrentPathIndex(int currentPathIndexIn)
public Vec3d getCurrentPos()
public boolean isSamePath(Path pathentityIn)
public boolean isDestinationSame(Vec3d vec)
public static Path read(PacketBuffer buf)