public class SwimNavigation extends EntityNavigation
Modifier and Type | Field and Description |
---|---|
private boolean |
canJumpOutOfWater |
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world
Constructor and Description |
---|
SwimNavigation(MobEntity mob,
World world) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canPathDirectlyThrough(Vec3d origin,
Vec3d target,
int sizeX,
int sizeY,
int sizeZ) |
protected void |
checkTimeouts(Vec3d currentPos) |
protected void |
continueFollowingPath() |
protected PathNodeNavigator |
createPathNodeNavigator(int range) |
protected Vec3d |
getPos()
The position to act as if the entity is at for pathfinding purposes
|
protected boolean |
isAtValidPosition() |
boolean |
isValidPosition(BlockPos pos) |
void |
setCanSwim(boolean canSwim) |
void |
tick() |
adjustPath, canSwim, findPathTo, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, method_29934, onBlockChanged, recalculatePath, resetRangeMultiplier, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop
protected PathNodeNavigator createPathNodeNavigator(int range)
createPathNodeNavigator
in class EntityNavigation
protected boolean isAtValidPosition()
isAtValidPosition
in class EntityNavigation
protected Vec3d getPos()
getPos
in class EntityNavigation
public void tick()
tick
in class EntityNavigation
protected void continueFollowingPath()
continueFollowingPath
in class EntityNavigation
protected void checkTimeouts(Vec3d currentPos)
checkTimeouts
in class EntityNavigation
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
canPathDirectlyThrough
in class EntityNavigation
public boolean isValidPosition(BlockPos pos)
isValidPosition
in class EntityNavigation
public void setCanSwim(boolean canSwim)
setCanSwim
in class EntityNavigation