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:
- SpiderNavigation,- StriderEntity.Navigation
- Mappings:
- Namespace - Name - official - bpi- intermediary - net/minecraft/class_1409- named - net/minecraft/entity/ai/pathing/MobNavigation
- 
Field SummaryFieldsFields 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 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.EntityNavigationadjustTargetY, canJumpToNext, 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- 
avoidSunlightprivate boolean avoidSunlight- Mappings:
- Namespace - Name - Mixin selector - official - p- Lbpi;p:Z- intermediary - field_6686- Lnet/minecraft/class_1409;field_6686:Z- named - avoidSunlight- Lnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Z
 
 
- 
- 
Constructor Details- 
MobNavigation- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lbpj;<init>(Lbgb;Lcmm;)V- intermediary - <init>- Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)V- named - <init>- Lnet/minecraft/entity/ai/pathing/EntityNavigation;<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;
 
- 
findPathTo- Overrides:
- findPathToin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Lgu;I)Ldxt;- intermediary - method_6348- Lnet/minecraft/class_1408;method_6348(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_11;- named - findPathTo- Lnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/entity/ai/pathing/Path;
 
- 
findPathTo- Overrides:
- findPathToin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpj;a(Lbfj;I)Ldxt;- intermediary - method_6349- Lnet/minecraft/class_1408;method_6349(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_11;- named - findPathTo- Lnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/ai/pathing/Path;
 
- 
getPathfindingYprivate int getPathfindingY()The y-position to act as if the entity is at for pathfinding purposes- Mappings:
- Namespace - Name - Mixin selector - official - t- Lbpi;t()I- intermediary - method_6362- Lnet/minecraft/class_1409;method_6362()I- named - getPathfindingY- Lnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()I
 
- 
adjustPathprotected void adjustPath()Adjusts the current path according to various special obstacles that may be in the way, for example sunlight- Overrides:
- adjustPathin class- EntityNavigation
- Mappings:
- Namespace - Name - Mixin selector - official - L_- Lbpj;L_()V- intermediary - method_6359- Lnet/minecraft/class_1408;method_6359()V- named - adjustPath- Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()V
 
- 
canWalkOnPath- Mappings:
- Namespace - Name - Mixin selector - official - a- Lbpi;a(Ldxp;)Z- intermediary - method_26338- Lnet/minecraft/class_1409;method_26338(Lnet/minecraft/class_7;)Z- named - canWalkOnPath- Lnet/minecraft/entity/ai/pathing/MobNavigation;canWalkOnPath(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
 
- 
setCanPathThroughDoorspublic void setCanPathThroughDoors(boolean canPathThroughDoors) - Mappings:
- Namespace - Name - Mixin selector - official - b- Lbpi;b(Z)V- intermediary - method_6363- Lnet/minecraft/class_1409;method_6363(Z)V- named - setCanPathThroughDoors- Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
 
- 
method_35140public boolean method_35140()- Mappings:
- Namespace - Name - Mixin selector - official - e- Lbpi;e()Z- intermediary - method_35140- Lnet/minecraft/class_1409;method_35140()Z- named - method_35140- Lnet/minecraft/entity/ai/pathing/MobNavigation;method_35140()Z
 
- 
setCanEnterOpenDoorspublic void setCanEnterOpenDoors(boolean canEnterOpenDoors) - Mappings:
- Namespace - Name - Mixin selector - official - c- Lbpi;c(Z)V- intermediary - method_35139- Lnet/minecraft/class_1409;method_35139(Z)V- named - setCanEnterOpenDoors- Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanEnterOpenDoors(Z)V
 
- 
canEnterOpenDoorspublic boolean canEnterOpenDoors()- Mappings:
- Namespace - Name - Mixin selector - official - f- Lbpi;f()Z- intermediary - method_6366- Lnet/minecraft/class_1409;method_6366()Z- named - canEnterOpenDoors- Lnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
 
- 
setAvoidSunlightpublic void setAvoidSunlight(boolean avoidSunlight) - Mappings:
- Namespace - Name - Mixin selector - official - d- Lbpi;d(Z)V- intermediary - method_6361- Lnet/minecraft/class_1409;method_6361(Z)V- named - setAvoidSunlight- Lnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V
 
- 
setCanWalkOverFencespublic void setCanWalkOverFences(boolean canWalkOverFences) - Mappings:
- Namespace - Name - Mixin selector - official - e- Lbpi;e(Z)V- intermediary - method_46645- Lnet/minecraft/class_1409;method_46645(Z)V- named - setCanWalkOverFences- Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanWalkOverFences(Z)V