Package net.minecraft.entity.ai.pathing
Class SwimNavigation
java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.SwimNavigation
- Direct Known Subclasses:
AxolotlEntity.AxolotlSwimNavigation,TurtleEntity.TurtleSwimNavigation
public class SwimNavigation extends EntityNavigation
- Mappings:
Namespace Name official aznintermediary net/minecraft/class_1412named net/minecraft/entity/ai/pathing/SwimNavigation
-
Field Summary
Fields Modifier and Type Field Description private booleancanJumpOutOfWaterFields inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, shouldRecalculate, speed, tickCount, world -
Constructor Summary
Constructors Constructor Description SwimNavigation(MobEntity mob, World world) -
Method Summary
Modifier and Type Method Description protected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)protected voidcheckTimeouts(Vec3d currentPos)protected voidcontinueFollowingPath()protected PathNodeNavigatorcreatePathNodeNavigator(int range)protected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected booleanisAtValidPosition()booleanisValidPosition(BlockPos pos)voidsetCanSwim(boolean canSwim)voidtick()Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
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
-
Field Details
-
canJumpOutOfWater
private boolean canJumpOutOfWater- Mappings:
Namespace Name Mixin selector official pLazn;p:Zintermediary field_6689Lnet/minecraft/class_1412;field_6689:Znamed canJumpOutOfWaterLnet/minecraft/entity/ai/pathing/SwimNavigation;canJumpOutOfWater:Z
-
-
Constructor Details
-
SwimNavigation
- Mappings:
Namespace Name Mixin selector official <init>Lazl;<init>(Larj;Lbtv;)Vintermediary <init>Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
-
-
Method Details
-
isAtValidPosition
protected boolean isAtValidPosition()- Specified by:
isAtValidPositionin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLazl;a()Zintermediary method_6358Lnet/minecraft/class_1408;method_6358()Znamed isAtValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
-
getPos
The position to act as if the entity is at for pathfinding purposes- Specified by:
getPosin classEntityNavigation- Mappings:
Namespace Name Mixin selector official bLazl;b()Ldiu;intermediary method_6347Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
tick
public void tick()- Overrides:
tickin classEntityNavigation- Mappings:
Namespace Name Mixin selector official cLazl;c()Vintermediary method_6360Lnet/minecraft/class_1408;method_6360()Vnamed tickLnet/minecraft/entity/ai/pathing/EntityNavigation;tick()V
-
continueFollowingPath
protected void continueFollowingPath()- Overrides:
continueFollowingPathin classEntityNavigation- Mappings:
Namespace Name Mixin selector official lLazl;l()Vintermediary method_6339Lnet/minecraft/class_1408;method_6339()Vnamed continueFollowingPathLnet/minecraft/entity/ai/pathing/EntityNavigation;continueFollowingPath()V
-
checkTimeouts
- Overrides:
checkTimeoutsin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLazl;a(Ldiu;)Vintermediary method_6346Lnet/minecraft/class_1408;method_6346(Lnet/minecraft/class_243;)Vnamed checkTimeoutsLnet/minecraft/entity/ai/pathing/EntityNavigation;checkTimeouts(Lnet/minecraft/util/math/Vec3d;)V
-
canPathDirectlyThrough
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)- Specified by:
canPathDirectlyThroughin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLazl;a(Ldiu;Ldiu;III)Zintermediary method_6341Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;III)Znamed canPathDirectlyThroughLnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;III)Z
-
isValidPosition
- Overrides:
isValidPositionin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLazl;a(Lfx;)Zintermediary method_6333Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Znamed isValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isValidPosition(Lnet/minecraft/util/math/BlockPos;)Z
-
setCanSwim
public void setCanSwim(boolean canSwim)- Overrides:
setCanSwimin classEntityNavigation- Mappings:
Namespace Name Mixin selector official dLazl;d(Z)Vintermediary method_6354Lnet/minecraft/class_1408;method_6354(Z)Vnamed setCanSwimLnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V