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 named net/minecraft/entity/ai/pathing/SwimNavigation
intermediary net/minecraft/class_1412
official cde
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected double
adjustTargetY
(Vec3d pos) protected boolean
canPathDirectlyThrough
(Vec3d origin, Vec3d target) protected PathNodeNavigator
createPathNodeNavigator
(int range) protected Vec3d
getPos()
The position to act as if the entity is at for pathfinding purposesprotected boolean
boolean
isValidPosition
(BlockPos pos) void
setCanSwim
(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, isNearPathStartPos, recalculatePath, resetRangeMultiplier, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, startMovingTo, stop, tick
-
Field Details
-
canJumpOutOfWater
private boolean canJumpOutOfWater- Mappings:
Namespace Name Mixin selector named canJumpOutOfWater
Lnet/minecraft/entity/ai/pathing/SwimNavigation;canJumpOutOfWater:Z
intermediary field_6689
Lnet/minecraft/class_1412;field_6689:Z
official p
Lcde;p:Z
-
-
Constructor Details
-
SwimNavigation
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
intermediary <init>
Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)V
official <init>
Lcdc;<init>(Lbts;Ldbz;)V
-
-
Method Details
-
isAtValidPosition
protected boolean isAtValidPosition()- Specified by:
isAtValidPosition
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector named isAtValidPosition
Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
intermediary method_6358
Lnet/minecraft/class_1408;method_6358()Z
official a
Lcdc;a()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 named getPos
Lnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
intermediary method_6347
Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;
official b
Lcdc;b()Levs;
-
adjustTargetY
- Overrides:
adjustTargetY
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector named adjustTargetY
Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustTargetY(Lnet/minecraft/util/math/Vec3d;)D
intermediary method_38065
Lnet/minecraft/class_1408;method_38065(Lnet/minecraft/class_243;)D
official a
Lcdc;a(Levs;)D
-
canPathDirectlyThrough
- Overrides:
canPathDirectlyThrough
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector named canPathDirectlyThrough
Lnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
intermediary method_6341
Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
official a
Lcdc;a(Levs;Levs;)Z
-
isValidPosition
- Overrides:
isValidPosition
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector named isValidPosition
Lnet/minecraft/entity/ai/pathing/EntityNavigation;isValidPosition(Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_6333
Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Z
official a
Lcdc;a(Liz;)Z
-
setCanSwim
public void setCanSwim(boolean canSwim) - Overrides:
setCanSwim
in classEntityNavigation
- Mappings:
Namespace Name Mixin selector named setCanSwim
Lnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V
intermediary method_6354
Lnet/minecraft/class_1408;method_6354(Z)V
official a
Lcdc;a(Z)V