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:
RavagerEntity.Navigation,SpiderNavigation,StriderEntity.Navigation
- Mappings:
Namespace Name official bnlintermediary net/minecraft/class_1409named net/minecraft/entity/ai/pathing/MobNavigation
-
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 booleanbooleanvoidsetAvoidSunlight(boolean avoidSunlight) voidsetCanEnterOpenDoors(boolean canEnterOpenDoors) voidsetCanPathThroughDoors(boolean canPathThroughDoors) voidsetCanWalkOverFences(boolean canWalkOverFences) Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
adjustTargetY, canPathDirectlyThrough, canSwim, checkTimeouts, continueFollowingPath, doesNotCollide, findPathTo, findPathTo, findPathTo, findPathTo, findPathToAny, findPathToAny, getCurrentPath, getNodeMaker, getNodeReachProximity, getTargetPos, isFollowingPath, isIdle, isInLiquid, isNearPathStartPos, isValidPosition, recalculatePath, resetRangeMultiplier, setCanSwim, setRangeMultiplier, setSpeed, shouldRecalculatePath, startMovingAlong, startMovingTo, startMovingTo, stop, tick
-
Field Details
-
avoidSunlight
private boolean avoidSunlight- Mappings:
Namespace Name Mixin selector official pLbnl;p:Zintermediary field_6686Lnet/minecraft/class_1409;field_6686:Znamed avoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Z
-
-
Constructor Details
-
MobNavigation
- Mappings:
Namespace Name Mixin selector official <init>Lbnm;<init>(Lbei;Lcjw;)Vintermediary <init>Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)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 official aLbnm;a()Zintermediary method_6358Lnet/minecraft/class_1408;method_6358()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 official bLbnm;b()Leae;intermediary method_6347Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
findPathTo
- Overrides:
findPathToin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLbnm;a(Lgp;I)Ldtz;intermediary method_6348Lnet/minecraft/class_1408;method_6348(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_11;named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/entity/ai/pathing/Path;
-
findPathTo
- Overrides:
findPathToin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLbnm;a(Lbdr;I)Ldtz;intermediary method_6349Lnet/minecraft/class_1408;method_6349(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_11;named findPathToLnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/ai/pathing/Path;
-
getPathfindingY
private int getPathfindingY()The y-position to act as if the entity is at for pathfinding purposes- Mappings:
Namespace Name Mixin selector official tLbnl;t()Iintermediary method_6362Lnet/minecraft/class_1409;method_6362()Inamed getPathfindingYLnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()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 official F_Lbnm;F_()Vintermediary method_6359Lnet/minecraft/class_1408;method_6359()Vnamed adjustPathLnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()V
-
canWalkOnPath
- Mappings:
Namespace Name Mixin selector official aLbnl;a(Ldtv;)Zintermediary method_26338Lnet/minecraft/class_1409;method_26338(Lnet/minecraft/class_7;)Znamed canWalkOnPathLnet/minecraft/entity/ai/pathing/MobNavigation;canWalkOnPath(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
-
setCanPathThroughDoors
public void setCanPathThroughDoors(boolean canPathThroughDoors) - Mappings:
Namespace Name Mixin selector official bLbnl;b(Z)Vintermediary method_6363Lnet/minecraft/class_1409;method_6363(Z)Vnamed setCanPathThroughDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
-
method_35140
public boolean method_35140()- Mappings:
Namespace Name Mixin selector official eLbnl;e()Zintermediary method_35140Lnet/minecraft/class_1409;method_35140()Znamed method_35140Lnet/minecraft/entity/ai/pathing/MobNavigation;method_35140()Z
-
setCanEnterOpenDoors
public void setCanEnterOpenDoors(boolean canEnterOpenDoors) - Mappings:
Namespace Name Mixin selector official cLbnl;c(Z)Vintermediary method_35139Lnet/minecraft/class_1409;method_35139(Z)Vnamed setCanEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanEnterOpenDoors(Z)V
-
canEnterOpenDoors
public boolean canEnterOpenDoors()- Mappings:
Namespace Name Mixin selector official fLbnl;f()Zintermediary method_6366Lnet/minecraft/class_1409;method_6366()Znamed canEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
-
setAvoidSunlight
public void setAvoidSunlight(boolean avoidSunlight) - Mappings:
Namespace Name Mixin selector official dLbnl;d(Z)Vintermediary method_6361Lnet/minecraft/class_1409;method_6361(Z)Vnamed setAvoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V
-
setCanWalkOverFences
public void setCanWalkOverFences(boolean canWalkOverFences) - Mappings:
Namespace Name Mixin selector official eLbnl;e(Z)Vintermediary method_46645Lnet/minecraft/class_1409;method_46645(Z)Vnamed setCanWalkOverFencesLnet/minecraft/entity/ai/pathing/MobNavigation;setCanWalkOverFences(Z)V