Package net.minecraft.entity.ai.pathing
Class AmphibiousSwimNavigation
java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.AmphibiousSwimNavigation
- Direct Known Subclasses:
- FrogEntity.FrogSwimNavigation,- TurtleEntity.TurtleSwimNavigation
- Mappings:
- Namespace - Name - official - bpg- intermediary - net/minecraft/class_5766- named - net/minecraft/entity/ai/pathing/AmphibiousSwimNavigation
- 
Field SummaryFields inherited from class net.minecraft.entity.ai.pathing.EntityNavigationcurrentNodeMs, currentNodeTimeout, currentPath, entity, inRecalculationCooldown, lastActiveTickMs, lastNodePosition, lastRecalculateTime, nodeMaker, nodeReachProximity, pathStartPos, pathStartTime, speed, tickCount, world
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.EntityNavigationadjustPath, 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
- 
Constructor Details- 
AmphibiousSwimNavigation- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbpg;<init>(Lbgb;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_5766;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/ai/pathing/AmphibiousSwimNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
 
 
- 
- 
Method Details
- 
isAtValidPositionprotected boolean isAtValidPosition()- Specified by:
- isAtValidPositionin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a()Z- intermediary - method_6358- Lnet/minecraft/class_1408;method_6358()Z- named - isAtValidPosition- Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
 
- 
getPosThe position to act as if the entity is at for pathfinding purposes- Specified by:
- getPosin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lbpj;b()Leei;- 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;
 
- 
adjustTargetY- Overrides:
- adjustTargetYin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Leei;)D- intermediary - method_38065- Lnet/minecraft/class_1408;method_38065(Lnet/minecraft/class_243;)D- named - adjustTargetY- Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustTargetY(Lnet/minecraft/util/math/Vec3d;)D
 
- 
canPathDirectlyThrough- Overrides:
- canPathDirectlyThroughin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Leei;Leei;)Z- intermediary - method_6341- Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z- named - canPathDirectlyThrough- Lnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
 
- 
isValidPosition- Overrides:
- isValidPositionin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Lgu;)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
 
- 
setCanSwimpublic void setCanSwim(boolean canSwim) - Overrides:
- setCanSwimin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Z)V- intermediary - method_6354- Lnet/minecraft/class_1408;method_6354(Z)V- named - setCanSwim- Lnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V