Package net.minecraft.entity.ai.pathing
Class SwimNavigation
java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.SwimNavigation
- Mappings:
Namespace Name intermediary net/minecraft/class_1412official bpjnamed net/minecraft/entity/ai/pathing/SwimNavigation
-
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
currentNodeMs, currentNodeTimeout, currentPath, entity, inRecalculationCooldown, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, speed, tickCount, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doubleadjustTargetY(Vec3d pos) protected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target) protected PathNodeNavigatorcreatePathNodeNavigator(int range) protected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected booleanbooleanisValidPosition(BlockPos pos) voidsetCanSwim(boolean canSwim) Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
adjustPath, canJumpToNext, canSwim, checkTimeouts, continueFollowingPath, doesNotCollide, findPathTo, findPathTo, findPathTo, findPathTo, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getNodeReachProximity, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, recalculatePath, resetRangeMultiplier, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop, tick
-
Field Details
-
canJumpOutOfWater
private boolean canJumpOutOfWater- Mappings:
Namespace Name Mixin selector intermediary field_6689Lnet/minecraft/class_1412;field_6689:Zofficial pLbpj;p:Znamed canJumpOutOfWaterLnet/minecraft/entity/ai/pathing/SwimNavigation;canJumpOutOfWater:Z
-
-
Constructor Details
-
SwimNavigation
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)Vofficial <init>Lbph;<init>(Lbfz;Lcmk;)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 intermediary method_6358Lnet/minecraft/class_1408;method_6358()Zofficial aLbph;a()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 intermediary method_6347Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;official bLbph;b()Leea;named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
adjustTargetY
- Overrides:
adjustTargetYin classEntityNavigation- Mappings:
Namespace Name Mixin selector intermediary method_38065Lnet/minecraft/class_1408;method_38065(Lnet/minecraft/class_243;)Dofficial aLbph;a(Leea;)Dnamed adjustTargetYLnet/minecraft/entity/ai/pathing/EntityNavigation;adjustTargetY(Lnet/minecraft/util/math/Vec3d;)D
-
canPathDirectlyThrough
- Overrides:
canPathDirectlyThroughin classEntityNavigation- Mappings:
Namespace Name Mixin selector intermediary method_6341Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Zofficial aLbph;a(Leea;Leea;)Znamed canPathDirectlyThroughLnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
-
isValidPosition
- Overrides:
isValidPositionin classEntityNavigation- Mappings:
Namespace Name Mixin selector intermediary method_6333Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Zofficial aLbph;a(Lgu;)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 intermediary method_6354Lnet/minecraft/class_1408;method_6354(Z)Vofficial aLbph;a(Z)Vnamed setCanSwimLnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V