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 we
intermediary net/minecraft/class_2620
named net/minecraft/entity/ai/pathing/MobNavigation
  • Field Details

    • avoidSunlight

      private boolean avoidSunlight
      Mappings:
      Namespace Name Mixin selector
      official f Lwe;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> Lwf;<init>(Lsx;Lajs;)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 Lwf;a()Lbbe;
      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 Lwf;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 Lwf;c()Lbdw;
      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;
    • method_13108

      public PathMinHeap method_13108(BlockPos blockPos)
      Overrides:
      method_13108 in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lwf;a(Lco;)Lbbd;
      intermediary method_13108 Lnet/minecraft/class_934;method_13108(Lnet/minecraft/class_2552;)Lnet/minecraft/class_85;
      named method_13108 Lnet/minecraft/entity/ai/pathing/EntityNavigation;method_13108(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/entity/ai/pathing/PathMinHeap;
    • method_13109

      public PathMinHeap method_13109(Entity entity)
      Overrides:
      method_13109 in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lwf;a(Lsn;)Lbbd;
      intermediary method_13109 Lnet/minecraft/class_934;method_13109(Lnet/minecraft/class_864;)Lnet/minecraft/class_85;
      named method_13109 Lnet/minecraft/entity/ai/pathing/EntityNavigation;method_13109(Lnet/minecraft/entity/Entity;)Lnet/minecraft/entity/ai/pathing/PathMinHeap;
    • getPathfindingY

      private int getPathfindingY()
      Mappings:
      Namespace Name Mixin selector
      official r Lwe;r()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 Lwf;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 Lwf;a(Lbdw;Lbdw;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
    • method_13106

      private boolean method_13106(int int2, int int3, int int4, int int5, int int6, int int7, Vec3d vec3d, double double2, double double3)
      Mappings:
      Namespace Name Mixin selector
      official a Lwe;a(IIIIIILbdw;DD)Z
      intermediary method_13106 Lnet/minecraft/class_2620;method_13106(IIIIIILnet/minecraft/class_236;DD)Z
      named method_13106 Lnet/minecraft/entity/ai/pathing/MobNavigation;method_13106(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 Lwe;b(IIIIIILbdw;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
    • setCanPathThroughDoors

      public void setCanPathThroughDoors(boolean value)
      Mappings:
      Namespace Name Mixin selector
      official a Lwe;a(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 b Lwe;b(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 f Lwe;f()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 c Lwe;c(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 g Lwe;g()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 d Lwe;d(Z)V
      intermediary method_11033 Lnet/minecraft/class_2620;method_11033(Z)V
      named setAvoidSunlight Lnet/minecraft/entity/ai/pathing/MobNavigation;setAvoidSunlight(Z)V