Class SwimNavigation

java.lang.Object
net.minecraft.entity.ai.pathing.EntityNavigation
net.minecraft.entity.ai.pathing.SwimNavigation
Direct Known Subclasses:
AxolotlEntity.AxolotlSwimNavigation, TurtleEntity.TurtleSwimNavigation

public class SwimNavigation extends EntityNavigation
Mappings:
Namespace Name
official bfi
intermediary net/minecraft/class_1412
named net/minecraft/entity/ai/pathing/SwimNavigation
  • Field Details

    • canJumpOutOfWater

      private boolean canJumpOutOfWater
      Mappings:
      Namespace Name Mixin selector
      official p Lbfi;p:Z
      intermediary field_6689 Lnet/minecraft/class_1412;field_6689:Z
      named canJumpOutOfWater Lnet/minecraft/entity/ai/pathing/SwimNavigation;canJumpOutOfWater:Z
  • Constructor Details

    • SwimNavigation

      public SwimNavigation(MobEntity mob, World world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfg;<init>(Laxc;Lbzw;)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

    • createPathNodeNavigator

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

      protected boolean isAtValidPosition()
      Specified by:
      isAtValidPosition in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a()Z
      intermediary method_6358 Lnet/minecraft/class_1408;method_6358()Z
      named isAtValidPosition Lnet/minecraft/entity/ai/pathing/EntityNavigation;isAtValidPosition()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
      official b Lbfg;b()Ldnz;
      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;
    • adjustTargetY

      protected double adjustTargetY(Vec3d pos)
      Overrides:
      adjustTargetY in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Ldnz;)D
      intermediary method_38065 Lnet/minecraft/class_1408;method_38065(Lnet/minecraft/class_243;)D
      named adjustTargetY Lnet/minecraft/entity/ai/pathing/EntityNavigation;adjustTargetY(Lnet/minecraft/util/math/Vec3d;)D
    • canPathDirectlyThrough

      protected boolean canPathDirectlyThrough(Vec3d origin, Vec3d target)
      Overrides:
      canPathDirectlyThrough in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Ldnz;Ldnz;)Z
      intermediary method_6341 Lnet/minecraft/class_1408;method_6341(Lnet/minecraft/class_243;Lnet/minecraft/class_243;)Z
      named canPathDirectlyThrough Lnet/minecraft/entity/ai/pathing/EntityNavigation;canPathDirectlyThrough(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/util/math/Vec3d;)Z
    • isValidPosition

      public boolean isValidPosition(BlockPos pos)
      Overrides:
      isValidPosition in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official a Lbfg;a(Lgh;)Z
      intermediary method_6333 Lnet/minecraft/class_1408;method_6333(Lnet/minecraft/class_2338;)Z
      named isValidPosition Lnet/minecraft/entity/ai/pathing/EntityNavigation;isValidPosition(Lnet/minecraft/util/math/BlockPos;)Z
    • setCanSwim

      public void setCanSwim(boolean canSwim)
      Overrides:
      setCanSwim in class EntityNavigation
      Mappings:
      Namespace Name Mixin selector
      official d Lbfg;d(Z)V
      intermediary method_6354 Lnet/minecraft/class_1408;method_6354(Z)V
      named setCanSwim Lnet/minecraft/entity/ai/pathing/EntityNavigation;setCanSwim(Z)V