Class MobNavigation

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

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

    • nodeMaker

      protected LandPathNodeMaker nodeMaker
      Mappings:
      Namespace Name Mixin selector
      official a Lsv;a:Lata;
      intermediary field_11965 Lnet/minecraft/class_2620;field_11965:Lnet/minecraft/class_2286;
      named nodeMaker Lnet/minecraft/entity/ai/pathing/MobNavigation;nodeMaker:Lnet/minecraft/entity/ai/pathing/LandPathNodeMaker;
    • avoidSunlight

      private boolean avoidSunlight
      Mappings:
      Namespace Name Mixin selector
      official f Lsv;f:Z
      intermediary field_11966 Lnet/minecraft/class_2620;field_11966:Z
      named avoidSunlight Lnet/minecraft/entity/ai/pathing/MobNavigation;avoidSunlight:Z
  • Constructor Details

    • MobNavigation

      public MobNavigation(MobEntity mob, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsw;<init>(Lps;Ladm;)V
      intermediary <init> Lnet/minecraft/class_934;<init>(Lnet/minecraft/class_871;Lnet/minecraft/class_1150;)V
      named <init> Lnet/minecraft/entity/ai/pathing/EntityNavigation;<init>(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/world/World;)V
  • Method Details

    • createNavigator

      protected PathNodeNavigator createNavigator()
      Specified by:
      createNavigator in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lsw;a()Lasy;
      intermediary method_11037 Lnet/minecraft/class_934;method_11037()Lnet/minecraft/class_88;
      named createNavigator Lnet/minecraft/entity/ai/pathing/EntityNavigation;createNavigator()Lnet/minecraft/entity/ai/pathing/PathNodeNavigator;
    • isAtValidPosition

      protected boolean isAtValidPosition()
      Specified by:
      isAtValidPosition in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official b Lsw;b()Z
      intermediary method_2794 Lnet/minecraft/class_934;method_2794()Z
      named isAtValidPosition Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()Z
    • getPos

      protected Vec3d getPos()
      Specified by:
      getPos in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official c Lsw;c()Laui;
      intermediary method_2792 Lnet/minecraft/class_934;method_2792()Lnet/minecraft/class_236;
      named getPos Lnet/minecraft/entity/ai/pathing/EntityNavigation;getPos()Lnet/minecraft/util/math/Vec3d;
    • getPathfindingY

      private int getPathfindingY()
      Mappings:
      Namespace Name Mixin selector
      official p Lsv;p()I
      intermediary method_11036 Lnet/minecraft/class_2620;method_11036()I
      named getPathfindingY Lnet/minecraft/entity/ai/pathing/MobNavigation;getPathfindingY()I
    • adjustPath

      protected void adjustPath()
      Overrides:
      adjustPath in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official d Lsw;d()V
      intermediary method_2796 Lnet/minecraft/class_934;method_2796()V
      named adjustPath Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustPath()V
    • canPathDirectlyThrough

      protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target, int sizeX, int sizeY, int sizeZ)
      Specified by:
      canPathDirectlyThrough in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lsw;a(Laui;Laui;III)Z
      intermediary method_2777 Lnet/minecraft/class_934;method_2777(Lnet/minecraft/class_236;Lnet/minecraft/class_236;III)Z
      named canPathDirectlyThrough Lnet/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 a Lsv;a(IIIIIILaui;DD)Z
      intermediary method_11026 Lnet/minecraft/class_2620;method_11026(IIIIIILnet/minecraft/class_236;DD)Z
      named allVisibleAreSafe Lnet/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 b Lsv;b(IIIIIILaui;DD)Z
      intermediary method_11028 Lnet/minecraft/class_2620;method_11028(IIIIIILnet/minecraft/class_236;DD)Z
      named allVisibleArePassable Lnet/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 a Lsv;a(Z)V
      intermediary method_11027 Lnet/minecraft/class_2620;method_11027(Z)V
      named method_11027 Lnet/minecraft/entity/ai/pathing/MobNavigation;method_11027(Z)V
    • method_11032

      public boolean method_11032()
      Mappings:
      Namespace Name Mixin selector
      official e Lsv;e()Z
      intermediary method_11032 Lnet/minecraft/class_2620;method_11032()Z
      named method_11032 Lnet/minecraft/entity/ai/pathing/MobNavigation;method_11032()Z
    • setCanPathThroughDoors

      public void setCanPathThroughDoors(boolean value)
      Mappings:
      Namespace Name Mixin selector
      official b Lsv;b(Z)V
      intermediary method_11029 Lnet/minecraft/class_2620;method_11029(Z)V
      named setCanPathThroughDoors Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanPathThroughDoors(Z)V
    • setCanEnterOpenDoors

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

      public boolean canEnterOpenDoors()
      Mappings:
      Namespace Name Mixin selector
      official g Lsv;g()Z
      intermediary method_11034 Lnet/minecraft/class_2620;method_11034()Z
      named canEnterOpenDoors Lnet/minecraft/entity/ai/pathing/MobNavigation;canEnterOpenDoors()Z
    • setCanSwim

      public void setCanSwim(boolean value)
      Mappings:
      Namespace Name Mixin selector
      official d Lsv;d(Z)V
      intermediary method_11031 Lnet/minecraft/class_2620;method_11031(Z)V
      named setCanSwim Lnet/minecraft/entity/ai/pathing/MobNavigation;setCanSwim(Z)V
    • canSwim

      public boolean canSwim()
      Mappings:
      Namespace Name Mixin selector
      official h Lsv;h()Z
      intermediary method_11035 Lnet/minecraft/class_2620;method_11035()Z
      named canSwim Lnet/minecraft/entity/ai/pathing/MobNavigation;canSwim()Z
    • setAvoidSunlight

      public void setAvoidSunlight(boolean avoidSunlight)
      Mappings:
      Namespace Name Mixin selector
      official e Lsv;e(Z)V
      intermediary method_11033 Lnet/minecraft/class_2620;method_11033(Z)V
      named setAvoidSunlight Lnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V