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, stopprotected PathNodeNavigator createPathNodeNavigator(int range)
createPathNodeNavigator in class EntityNavigationprotected boolean isAtValidPosition()
isAtValidPosition in class EntityNavigationprotected Vec3d getPos()
getPos in class EntityNavigationpublic void tick()
tick in class EntityNavigationprotected void continueFollowingPath()
continueFollowingPath in class EntityNavigationprotected void checkTimeouts(Vec3d currentPos)
checkTimeouts in class EntityNavigationprotected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
canPathDirectlyThrough in class EntityNavigationpublic boolean isValidPosition(BlockPos pos)
isValidPosition in class EntityNavigationpublic void setCanSwim(boolean canSwim)
setCanSwim in class EntityNavigation