Package net.minecraft.entity.ai.pathing
Class MobNavigation
java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.MobNavigation
- Direct Known Subclasses:
CreakingEntity.CreakingNavigation,SpiderNavigation,StriderEntity.Navigation
- Mappings:
Namespace Name named net/minecraft/entity/ai/pathing/MobNavigationintermediary net/minecraft/class_1409official cog
-
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 voidAdjusts the current path according to various special obstacles that may be in the way, for example sunlightbooleanprotected booleancanWalkOnPath(PathNodeType pathType) protected PathNodeNavigatorcreatePathNodeNavigator(int range) findPathTo(Entity entity, int distance) findPathTo(BlockPos target, int distance) private intThe y-position to act as if the entity is at for pathfinding purposesprotected Vec3dgetPos()The position to act as if the entity is at for pathfinding purposesprotected boolean(package private) final BlockPosretargetToSolidBlock(WorldChunk chunk, BlockPos pos, int distance) voidsetAvoidSunlight(boolean avoidSunlight) voidsetCanWalkOverFences(boolean canWalkOverFences) voidsetSkipRetarget(boolean skipRetarget) Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
adjustTargetY, canJumpToNext, canPathDirectlyThrough, canSwim, checkTimeouts, continueFollowingPath, doesNotCollide, findPathTo, findPathTo, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getNodeReachProximity, getTargetPos, isFollowingPath, isIdle, isNearPathStartPos, isValidPosition, recalculatePath, resetRangeMultiplier, setCanOpenDoors, setCanSwim, setMaxFollowRange, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, startMovingTo, stop, tick, updateRange
-
Field Details
-
avoidSunlight
private boolean avoidSunlight- Mappings:
Namespace Name Mixin selector named avoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Zintermediary field_6686Lnet/minecraft/class_1409;field_6686:Zofficial pLcog;p:Z
-
skipRetarget
private boolean skipRetarget- Mappings:
Namespace Name Mixin selector named skipRetargetLnet/minecraft/entity/ai/pathing/MobNavigation;skipRetarget:Zintermediary field_63015Lnet/minecraft/class_1409;field_63015:Zofficial qLcog;q:Z
-
-
Constructor Details
-
MobNavigation
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)Vintermediary <init>Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)Vofficial <init>Lcoh;<init>(Lcey;Ldrq;)V
-
-
Method Details
-
isAtValidPosition
protected boolean isAtValidPosition()- Specified by:
isAtValidPositionin classEntityNavigation- Mappings:
Namespace Name Mixin selector named isAtValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Zintermediary method_6358Lnet/minecraft/class_1408;method_6358()Zofficial aLcoh;a()Z
-
getPos
The position to act as if the entity is at for pathfinding purposes- Specified by:
getPosin classEntityNavigation- Mappings:
Namespace Name Mixin selector named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;intermediary method_6347Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;official bLcoh;b()Lfoh;
-
findPathTo
- Overrides:
findPathToin classEntityNavigation- Mappings:
Namespace Name Mixin selector named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/entity/ai/pathing/Path;intermediary method_6348Lnet/minecraft/class_1408;method_6348(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_11;official aLcoh;a(Lja;I)Lfgo;
-
retargetToSolidBlock
- Mappings:
Namespace Name Mixin selector named retargetToSolidBlockLnet/minecraft/entity/ai/pathing/MobNavigation;retargetToSolidBlock(Lnet/minecraft/world/chunk/WorldChunk;Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/util/math/BlockPos;intermediary method_74873Lnet/minecraft/class_1409;method_74873(Lnet/minecraft/class_2818;Lnet/minecraft/class_2338;I)Lnet/minecraft/class_2338;official aLcog;a(Lelv;Lja;I)Lja;
-
findPathTo
- Overrides:
findPathToin classEntityNavigation- Mappings:
Namespace Name Mixin selector named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/ai/pathing/Path;intermediary method_6349Lnet/minecraft/class_1408;method_6349(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_11;official aLcoh;a(Lcdv;I)Lfgo;
-
getPathfindingY
private int getPathfindingY()The y-position to act as if the entity is at for pathfinding purposes- Mappings:
Namespace Name Mixin selector named getPathfindingYLnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()Iintermediary method_6362Lnet/minecraft/class_1409;method_6362()Iofficial sLcog;s()I
-
adjustPath
protected void adjustPath()Adjusts the current path according to various special obstacles that may be in the way, for example sunlight- Overrides:
adjustPathin classEntityNavigation- Mappings:
Namespace Name Mixin selector named adjustPathLnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()Vintermediary method_6359Lnet/minecraft/class_1408;method_6359()Vofficial eLcoh;e()V
-
canControlOpeningDoors
public boolean canControlOpeningDoors()- Specified by:
canControlOpeningDoorsin classEntityNavigation- Mappings:
Namespace Name Mixin selector named canControlOpeningDoorsLnet/minecraft/entity/ai/pathing/EntityNavigation;canControlOpeningDoors()Zintermediary method_70686Lnet/minecraft/class_1408;method_70686()Zofficial cLcoh;c()Z
-
canWalkOnPath
- Mappings:
Namespace Name Mixin selector named canWalkOnPathLnet/minecraft/entity/ai/pathing/MobNavigation;canWalkOnPath(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Zintermediary method_26338Lnet/minecraft/class_1409;method_26338(Lnet/minecraft/class_7;)Zofficial aLcog;a(Lfgr;)Z
-
setAvoidSunlight
public void setAvoidSunlight(boolean avoidSunlight) - Mappings:
Namespace Name Mixin selector named setAvoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)Vintermediary method_6361Lnet/minecraft/class_1409;method_6361(Z)Vofficial bLcog;b(Z)V
-
setCanWalkOverFences
public void setCanWalkOverFences(boolean canWalkOverFences) - Mappings:
Namespace Name Mixin selector named setCanWalkOverFencesLnet/minecraft/entity/ai/pathing/MobNavigation;setCanWalkOverFences(Z)Vintermediary method_46645Lnet/minecraft/class_1409;method_46645(Z)Vofficial cLcog;c(Z)V
-
setSkipRetarget
public void setSkipRetarget(boolean skipRetarget) - Mappings:
Namespace Name Mixin selector named setSkipRetargetLnet/minecraft/entity/ai/pathing/MobNavigation;setSkipRetarget(Z)Vintermediary method_74874Lnet/minecraft/class_1409;method_74874(Z)Vofficial dLcog;d(Z)V