public class SpiderNavigation extends MobNavigation
Modifier and Type | Field and Description |
---|---|
private BlockPos |
targetPos |
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world
Constructor and Description |
---|
SpiderNavigation(MobEntity mob,
World world) |
Modifier and Type | Method and Description |
---|---|
Path |
findPathTo(BlockPos target,
int distance) |
Path |
findPathTo(Entity entity,
int distance) |
boolean |
startMovingTo(Entity entity,
double speed) |
void |
tick() |
adjustPath, canEnterOpenDoors, canPathDirectlyThrough, canWalkOnPath, createPathNodeNavigator, getPos, isAtValidPosition, setAvoidSunlight, setCanPathThroughDoors
canSwim, checkTimeouts, continueFollowingPath, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, isValidPosition, method_29934, onBlockChanged, recalculatePath, resetRangeMultiplier, setCanSwim, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, stop
private BlockPos targetPos
public Path findPathTo(BlockPos target, int distance)
findPathTo
in class MobNavigation
public Path findPathTo(Entity entity, int distance)
findPathTo
in class MobNavigation
public boolean startMovingTo(Entity entity, double speed)
startMovingTo
in class EntityNavigation
public void tick()
tick
in class EntityNavigation