Class MobNavigation

java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.MobNavigation
Direct Known Subclasses:
SpiderNavigation, StriderEntity.Navigation

public class MobNavigation extends EntityNavigation
Mappings:
Namespace Name
named net/minecraft/entity/ai/pathing/MobNavigation
intermediary net/minecraft/class_1409
official ccz
  • Field Details

    • avoidSunlight

      private boolean avoidSunlight
      Mappings:
      Namespace Name Mixin selector
      named avoidSunlight Lnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Z
      intermediary field_6686 Lnet/minecraft/class_1409;field_6686:Z
      official p Lccz;p:Z
  • Constructor Details

    • MobNavigation

      public MobNavigation(MobEntity entity, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1408;<init>(Lnet/minecraft/class_1308;Lnet/minecraft/class_1937;)V
      official <init> Lcda;<init>(Lbtp;Ldcw;)V
  • Method Details

    • createPathNodeNavigator

      protected PathNodeNavigator createPathNodeNavigator(int range)
      Specified by:
      createPathNodeNavigator in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named createPathNodeNavigator Lnet/minecraft/entity/ai/pathing/EntityNavigation;createPathNodeNavigator(I)Lnet/minecraft/entity/ai/pathing/PathNodeNavigator;
      intermediary method_6336 Lnet/minecraft/class_1408;method_6336(I)Lnet/minecraft/class_13;
      official a Lcda;a(I)Lepu;
    • isAtValidPosition

      protected boolean isAtValidPosition()
      Specified by:
      isAtValidPosition in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named isAtValidPosition Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
      intermediary method_6358 Lnet/minecraft/class_1408;method_6358()Z
      official a Lcda;a()Z
    • getPos

      protected Vec3d getPos()
      The position to act as if the entity is at for pathfinding purposes
      Specified by:
      getPos in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named getPos Lnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
      intermediary method_6347 Lnet/minecraft/class_1408;method_6347()Lnet/minecraft/class_243;
      official b Lcda;b()Lexc;
    • findPathTo

      public Path findPathTo(BlockPos target, int distance)
      Overrides:
      findPathTo in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named findPathTo Lnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/util/math/BlockPos;I)Lnet/minecraft/entity/ai/pathing/Path;
      intermediary method_6348 Lnet/minecraft/class_1408;method_6348(Lnet/minecraft/class_2338;I)Lnet/minecraft/class_11;
      official a Lcda;a(Ljd;I)Leps;
    • findPathTo

      public Path findPathTo(Entity entity, int distance)
      Overrides:
      findPathTo in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named findPathTo Lnet/minecraft/entity/ai/pathing/EntityNavigation;findPathTo(Lnet/minecraft/entity/Entity;I)Lnet/minecraft/entity/ai/pathing/Path;
      intermediary method_6349 Lnet/minecraft/class_1408;method_6349(Lnet/minecraft/class_1297;I)Lnet/minecraft/class_11;
      official a Lcda;a(Lbsr;I)Leps;
    • getPathfindingY

      private int getPathfindingY()
      The y-position to act as if the entity is at for pathfinding purposes
      Mappings:
      Namespace Name Mixin selector
      named getPathfindingY Lnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()I
      intermediary method_6362 Lnet/minecraft/class_1409;method_6362()I
      official s Lccz;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:
      adjustPath in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      named adjustPath Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()V
      intermediary method_6359 Lnet/minecraft/class_1408;method_6359()V
      official W_ Lcda;W_()V
    • canWalkOnPath

      protected boolean canWalkOnPath(PathNodeType pathType)
      Mappings:
      Namespace Name Mixin selector
      named canWalkOnPath Lnet/minecraft/entity/ai/pathing/MobNavigation;canWalkOnPath(Lnet/minecraft/entity/ai/pathing/PathNodeType;)Z
      intermediary method_26338 Lnet/minecraft/class_1409;method_26338(Lnet/minecraft/class_7;)Z
      official a Lccz;a(Lepv;)Z
    • setCanPathThroughDoors

      public void setCanPathThroughDoors(boolean canPathThroughDoors)
      Mappings:
      Namespace Name Mixin selector
      named setCanPathThroughDoors Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
      intermediary method_6363 Lnet/minecraft/class_1409;method_6363(Z)V
      official b Lccz;b(Z)V
    • method_35140

      public boolean method_35140()
      Mappings:
      Namespace Name Mixin selector
      named method_35140 Lnet/minecraft/entity/ai/pathing/MobNavigation;method_35140()Z
      intermediary method_35140 Lnet/minecraft/class_1409;method_35140()Z
      official e Lccz;e()Z
    • setCanEnterOpenDoors

      public void setCanEnterOpenDoors(boolean canEnterOpenDoors)
      Mappings:
      Namespace Name Mixin selector
      named setCanEnterOpenDoors Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanEnterOpenDoors(Z)V
      intermediary method_35139 Lnet/minecraft/class_1409;method_35139(Z)V
      official c Lccz;c(Z)V
    • canEnterOpenDoors

      public boolean canEnterOpenDoors()
      Mappings:
      Namespace Name Mixin selector
      named canEnterOpenDoors Lnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
      intermediary method_6366 Lnet/minecraft/class_1409;method_6366()Z
      official f Lccz;f()Z
    • setAvoidSunlight

      public void setAvoidSunlight(boolean avoidSunlight)
      Mappings:
      Namespace Name Mixin selector
      named setAvoidSunlight Lnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V
      intermediary method_6361 Lnet/minecraft/class_1409;method_6361(Z)V
      official d Lccz;d(Z)V
    • setCanWalkOverFences

      public void setCanWalkOverFences(boolean canWalkOverFences)
      Mappings:
      Namespace Name Mixin selector
      named setCanWalkOverFences Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanWalkOverFences(Z)V
      intermediary method_46645 Lnet/minecraft/class_1409;method_46645(Z)V
      official e Lccz;e(Z)V