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 azn
intermediary net/minecraft/class_1412
named net/minecraft/entity/ai/pathing/SwimNavigation
-
Field Summary
Fields Modifier and Type Field Description private boolean
canJumpOutOfWater
Fields 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 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 purposesprotected boolean
isAtValidPosition()
boolean
isValidPosition(BlockPos pos)
void
setCanSwim(boolean canSwim)
void
tick()
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 p
Lazn;p:Z
intermediary field_6689
Lnet/minecraft/class_1412;field_6689:Z
named canJumpOutOfWater
Lnet/minecraft/entity/ai/pathing/SwimNavigation;canJumpOutOfWater:Z
-
-
Constructor Details
-
SwimNavigation
- Mappings:
Namespace Name Mixin selector official <init>
Lazl;<init>(Larj;Lbtv;)V
intermediary <init>
Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)V
named <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:
isAtValidPosition
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official a
Lazl;a()Z
intermediary method_6358
Lnet/minecraft/class_1408;method_6358()Z
named isAtValidPosition
Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
-
getPos
The position to act as if the entity is at for pathfinding purposes- Specified by:
getPos
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official b
Lazl;b()Ldiu;
intermediary method_6347
Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;
named getPos
Lnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
tick
public void tick()- Overrides:
tick
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official c
Lazl;c()V
intermediary method_6360
Lnet/minecraft/class_1408;method_6360()V
named tick
Lnet/minecraft/entity/ai/pathing/EntityNavigation;tick()V
-
continueFollowingPath
protected void continueFollowingPath()- Overrides:
continueFollowingPath
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official l
Lazl;l()V
intermediary method_6339
Lnet/minecraft/class_1408;method_6339()V
named continueFollowingPath
Lnet/minecraft/entity/ai/pathing/EntityNavigation;continueFollowingPath()V
-
checkTimeouts
- Overrides:
checkTimeouts
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official a
Lazl;a(Ldiu;)V
intermediary method_6346
Lnet/minecraft/class_1408;method_6346(Lnet/minecraft/class_243;)V
named checkTimeouts
Lnet/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:
canPathDirectlyThrough
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official a
Lazl;a(Ldiu;Ldiu;III)Z
intermediary method_6341
Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;III)Z
named canPathDirectlyThrough
Lnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;III)Z
-
isValidPosition
- Overrides:
isValidPosition
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official a
Lazl;a(Lfx;)Z
intermediary method_6333
Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Z
named isValidPosition
Lnet/minecraft/entity/ai/pathing/EntityNavigation;isValidPosition(Lnet/minecraft/util/math/BlockPos;)Z
-
setCanSwim
public void setCanSwim(boolean canSwim)- Overrides:
setCanSwim
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector official d
Lazl;d(Z)V
intermediary method_6354
Lnet/minecraft/class_1408;method_6354(Z)V
named setCanSwim
Lnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V