public abstract class PathNavigator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Path |
currentPath |
protected MobEntity |
entity |
private int |
field_225468_r |
private IAttributeInstance |
field_226333_p_ |
private float |
field_226334_s_ |
protected Vec3d |
lastPosCheck |
protected long |
lastTimeoutCheck |
protected long |
lastTimeUpdated |
protected float |
maxDistanceToWaypoint |
protected NodeProcessor |
nodeProcessor |
private PathFinder |
pathFinder |
protected double |
speed |
private BlockPos |
targetPos |
protected int |
ticksAtLastPos |
protected Vec3d |
timeoutCachedNode |
protected double |
timeoutLimit |
protected long |
timeoutTimer |
protected int |
totalTicks |
protected boolean |
tryUpdatePath |
protected World |
world |
Constructor and Description |
---|
PathNavigator(MobEntity entityIn,
World worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEntityStandOnPos(BlockPos pos) |
protected abstract boolean |
canNavigate() |
boolean |
canUpdatePathOnTimeout() |
protected void |
checkForStuck(Vec3d positionVec3) |
void |
clearPath() |
void |
func_220970_c(BlockPos p_220970_1_) |
Path |
func_225463_a(java.util.stream.Stream<BlockPos> p_225463_1_,
int p_225463_2_) |
protected Path |
func_225464_a(java.util.Set<BlockPos> p_225464_1_,
int p_225464_2_,
boolean p_225464_3_,
int p_225464_4_) |
boolean |
func_226337_n_() |
boolean |
getCanSwim() |
protected abstract Vec3d |
getEntityPosition() |
NodeProcessor |
getNodeProcessor() |
Path |
getPath() |
protected abstract PathFinder |
getPathFinder(int p_179679_1_) |
Path |
getPathToEntity(Entity entityIn,
int p_75494_2_) |
Path |
getPathToPos(BlockPos pos,
int p_179680_2_) |
Path |
getPathToPos(double p_225466_1_,
double p_225466_3_,
double p_225466_5_,
int p_225466_7_) |
BlockPos |
getTargetPos() |
protected abstract boolean |
isDirectPathBetweenPoints(Vec3d posVec31,
Vec3d posVec32,
int sizeX,
int sizeY,
int sizeZ) |
protected boolean |
isInLiquid() |
boolean |
noPath() |
protected void |
pathFollow() |
void |
resetRangeMultiplier() |
void |
setCanSwim(boolean canSwim) |
boolean |
setPath(Path pathentityIn,
double speedIn) |
void |
setRangeMultiplier(float p_226335_1_) |
void |
setSpeed(double speedIn) |
void |
tick() |
protected void |
trimPath() |
boolean |
tryMoveToEntityLiving(Entity entityIn,
double speedIn) |
boolean |
tryMoveToXYZ(double x,
double y,
double z,
double speedIn) |
void |
updatePath() |
protected final MobEntity entity
protected final World world
@Nullable protected Path currentPath
protected double speed
private final IAttributeInstance field_226333_p_
protected int totalTicks
protected int ticksAtLastPos
protected Vec3d lastPosCheck
protected Vec3d timeoutCachedNode
protected long timeoutTimer
protected long lastTimeoutCheck
protected double timeoutLimit
protected float maxDistanceToWaypoint
protected boolean tryUpdatePath
protected long lastTimeUpdated
protected NodeProcessor nodeProcessor
private BlockPos targetPos
private int field_225468_r
private float field_226334_s_
private final PathFinder pathFinder
public void resetRangeMultiplier()
public void setRangeMultiplier(float p_226335_1_)
public BlockPos getTargetPos()
protected abstract PathFinder getPathFinder(int p_179679_1_)
public void setSpeed(double speedIn)
public boolean canUpdatePathOnTimeout()
public void updatePath()
@Nullable public final Path getPathToPos(double p_225466_1_, double p_225466_3_, double p_225466_5_, int p_225466_7_)
@Nullable public Path func_225463_a(java.util.stream.Stream<BlockPos> p_225463_1_, int p_225463_2_)
@Nullable protected Path func_225464_a(java.util.Set<BlockPos> p_225464_1_, int p_225464_2_, boolean p_225464_3_, int p_225464_4_)
public boolean tryMoveToXYZ(double x, double y, double z, double speedIn)
public boolean tryMoveToEntityLiving(Entity entityIn, double speedIn)
public boolean setPath(@Nullable Path pathentityIn, double speedIn)
@Nullable public Path getPath()
public void tick()
protected void pathFollow()
protected void checkForStuck(Vec3d positionVec3)
public boolean noPath()
public boolean func_226337_n_()
public void clearPath()
protected abstract Vec3d getEntityPosition()
protected abstract boolean canNavigate()
protected boolean isInLiquid()
protected void trimPath()
protected abstract boolean isDirectPathBetweenPoints(Vec3d posVec31, Vec3d posVec32, int sizeX, int sizeY, int sizeZ)
public boolean canEntityStandOnPos(BlockPos pos)
public NodeProcessor getNodeProcessor()
public void setCanSwim(boolean canSwim)
public boolean getCanSwim()
public void func_220970_c(BlockPos p_220970_1_)