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
- Mappings:
Namespace Name official aayintermediary net/minecraft/class_2620named net/minecraft/entity/ai/pathing/MobNavigation
-
Field Summary
FieldsFields inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
currentPath, mob, speed, world -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate booleanallVisibleArePassable(int x, int y, int z, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) Checks whether all blocks in the box which are visible (in front of) the mob can be pathed throughprivate booleanallVisibleAreSafe(int centerX, int centerY, int centerZ, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) booleanprotected booleancanPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) booleancanSwim()protected PathNodeNavigatorprivate intprotected Vec3dgetPos()protected booleanvoidmethod_11027(boolean value) booleanvoidsetAvoidSunlight(boolean avoidSunlight) voidsetCanEnterOpenDoors(boolean value) voidsetCanPathThroughDoors(boolean value) voidsetCanSwim(boolean value) Methods inherited from class net.minecraft.entity.ai.pathing.EntityNavigation
checkTimeouts, continueFollowingPath, findPathTo, findPathTo, findPathTo, getCurrentPath, getFollowRange, isIdle, isInLiquid, method_11038, setSpeed, startMovingAlong, startMovingTo, startMovingTo, stop, tick
-
Field Details
-
nodeMaker
- Mappings:
Namespace Name Mixin selector official aLaay;a:Lbpy;intermediary field_11965Lnet/minecraft/class_2620;field_11965:Lnet/minecraft/class_2286;named nodeMakerLnet/minecraft/entity/ai/pathing/MobNavigation;nodeMaker:Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;
-
avoidSunlight
private boolean avoidSunlight- Mappings:
Namespace Name Mixin selector official fLaay;f:Zintermediary field_11966Lnet/minecraft/class_2620;field_11966:Znamed avoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Z
-
-
Constructor Details
-
MobNavigation
- Mappings:
Namespace Name Mixin selector official <init>Laaz;<init>(Lxn;Laqu;)Vintermediary <init>Lnet/minecraft/class_934;<init>(Lnet/minecraft/class_871;Lnet/minecraft/class_1150;)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 bLaaz;b()Zintermediary method_2794Lnet/minecraft/class_934;method_2794()Znamed isAtValidPositionLnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
-
getPos
- Specified by:
getPosin classEntityNavigation- Mappings:
Namespace Name Mixin selector official cLaaz;c()Lbrw;intermediary method_2792Lnet/minecraft/class_934;method_2792()Lnet/minecraft/class_236;named getPosLnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
-
getPathfindingY
private int getPathfindingY()- Mappings:
Namespace Name Mixin selector official pLaay;p()Iintermediary method_11036Lnet/minecraft/class_2620;method_11036()Inamed getPathfindingYLnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()I
-
adjustPath
protected void adjustPath()- Overrides:
adjustPathin classEntityNavigation- Mappings:
Namespace Name Mixin selector official dLaaz;d()Vintermediary method_2796Lnet/minecraft/class_934;method_2796()Vnamed adjustPathLnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()V
-
canPathDirectlyThrough
protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ) - Specified by:
canPathDirectlyThroughin classEntityNavigation- Mappings:
Namespace Name Mixin selector official aLaaz;a(Lbrw;Lbrw;III)Zintermediary method_2777Lnet/minecraft/class_934;method_2777(Lnet/minecraft/class_236;Lnet/minecraft/class_236;III)Znamed canPathDirectlyThroughLnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;III)Z
-
allVisibleAreSafe
private boolean allVisibleAreSafe(int centerX, int centerY, int centerZ, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) - Mappings:
Namespace Name Mixin selector official aLaay;a(IIIIIILbrw;DD)Zintermediary method_11026Lnet/minecraft/class_2620;method_11026(IIIIIILnet/minecraft/class_236;DD)Znamed allVisibleAreSafeLnet/minecraft/entity/ai/pathing/MobNavigation;allVisibleAreSafe(IIIIIILnet/minecraft/util/math/Vec3d;DD)Z
-
allVisibleArePassable
private boolean allVisibleArePassable(int x, int y, int z, int sizeX, int sizeY, int sizeZ, Vec3d entityPos, double lookVecX, double lookVecZ) Checks whether all blocks in the box which are visible (in front of) the mob can be pathed through- Mappings:
Namespace Name Mixin selector official bLaay;b(IIIIIILbrw;DD)Zintermediary method_11028Lnet/minecraft/class_2620;method_11028(IIIIIILnet/minecraft/class_236;DD)Znamed allVisibleArePassableLnet/minecraft/entity/ai/pathing/MobNavigation;allVisibleArePassable(IIIIIILnet/minecraft/util/math/Vec3d;DD)Z
-
method_11027
public void method_11027(boolean value) - Mappings:
Namespace Name Mixin selector official aLaay;a(Z)Vintermediary method_11027Lnet/minecraft/class_2620;method_11027(Z)Vnamed method_11027Lnet/minecraft/entity/ai/pathing/MobNavigation;method_11027(Z)V
-
method_11032
public boolean method_11032()- Mappings:
Namespace Name Mixin selector official eLaay;e()Zintermediary method_11032Lnet/minecraft/class_2620;method_11032()Znamed method_11032Lnet/minecraft/entity/ai/pathing/MobNavigation;method_11032()Z
-
setCanPathThroughDoors
public void setCanPathThroughDoors(boolean value) - Mappings:
Namespace Name Mixin selector official bLaay;b(Z)Vintermediary method_11029Lnet/minecraft/class_2620;method_11029(Z)Vnamed setCanPathThroughDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
-
setCanEnterOpenDoors
public void setCanEnterOpenDoors(boolean value) - Mappings:
Namespace Name Mixin selector official cLaay;c(Z)Vintermediary method_11030Lnet/minecraft/class_2620;method_11030(Z)Vnamed setCanEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;setCanEnterOpenDoors(Z)V
-
canEnterOpenDoors
public boolean canEnterOpenDoors()- Mappings:
Namespace Name Mixin selector official gLaay;g()Zintermediary method_11034Lnet/minecraft/class_2620;method_11034()Znamed canEnterOpenDoorsLnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
-
setCanSwim
public void setCanSwim(boolean value) - Mappings:
Namespace Name Mixin selector official dLaay;d(Z)Vintermediary method_11031Lnet/minecraft/class_2620;method_11031(Z)Vnamed setCanSwimLnet/minecraft/entity/ai/pathing/MobNavigation;setCanSwim(Z)V
-
canSwim
public boolean canSwim()- Mappings:
Namespace Name Mixin selector official hLaay;h()Zintermediary method_11035Lnet/minecraft/class_2620;method_11035()Znamed canSwimLnet/minecraft/entity/ai/pathing/MobNavigation;canSwim()Z
-
setAvoidSunlight
public void setAvoidSunlight(boolean avoidSunlight) - Mappings:
Namespace Name Mixin selector official eLaay;e(Z)Vintermediary method_11033Lnet/minecraft/class_2620;method_11033(Z)Vnamed setAvoidSunlightLnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V