Class EscapeDangerGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeDangerGoal
Direct Known Subclasses:
FoxEntity.EscapeWhenNotAggressiveGoal, PandaEntity.PandaEscapeDangerGoal, PolarBearEntity.PolarBearEscapeDangerGoal, RabbitEntity.EscapeDangerGoal, TurtleEntity.TurtleEscapeDangerGoal, WolfEntity.WolfEscapeDangerGoal

public class EscapeDangerGoal extends Goal
Mappings:
Namespace Name
official bji
intermediary net/minecraft/class_1374
named net/minecraft/entity/ai/goal/EscapeDangerGoal
  • Field Details

    • RANGE_Y

      public static final int RANGE_Y
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a:I
      intermediary field_36271 Lnet/minecraft/class_1374;field_36271:I
      named RANGE_Y Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;RANGE_Y:I
    • mob

      protected final PathAwareEntity mob
      Mappings:
      Namespace Name Mixin selector
      official b Lbji;b:Lbcl;
      intermediary field_6549 Lnet/minecraft/class_1374;field_6549:Lnet/minecraft/class_1314;
      named mob Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
    • speed

      protected final double speed
      Mappings:
      Namespace Name Mixin selector
      official c Lbji;c:D
      intermediary field_6548 Lnet/minecraft/class_1374;field_6548:D
      named speed Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;speed:D
    • targetX

      protected double targetX
      Mappings:
      Namespace Name Mixin selector
      official d Lbji;d:D
      intermediary field_6547 Lnet/minecraft/class_1374;field_6547:D
      named targetX Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetX:D
    • targetY

      protected double targetY
      Mappings:
      Namespace Name Mixin selector
      official e Lbji;e:D
      intermediary field_6546 Lnet/minecraft/class_1374;field_6546:D
      named targetY Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetY:D
    • targetZ

      protected double targetZ
      Mappings:
      Namespace Name Mixin selector
      official f Lbji;f:D
      intermediary field_6550 Lnet/minecraft/class_1374;field_6550:D
      named targetZ Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;targetZ:D
    • active

      protected boolean active
      Mappings:
      Namespace Name Mixin selector
      official g Lbji;g:Z
      intermediary field_23227 Lnet/minecraft/class_1374;field_23227:Z
      named active Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;active:Z
  • Constructor Details

    • EscapeDangerGoal

      public EscapeDangerGoal(PathAwareEntity mob, double speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbji;<init>(Lbcl;D)V
      intermediary <init> Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;D)V
      named <init> Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;D)V
  • Method Details

    • canStart

      public boolean canStart()
      Specified by:
      canStart in class Goal
      Mappings:
      Namespace Name Mixin selector
      official a Lbip;a()Z
      intermediary method_6264 Lnet/minecraft/class_1352;method_6264()Z
      named canStart Lnet/minecraft/entity/ai/goal/Goal;canStart()Z
    • isInDanger

      protected boolean isInDanger()
      Mappings:
      Namespace Name Mixin selector
      official h Lbji;h()Z
      intermediary method_40072 Lnet/minecraft/class_1374;method_40072()Z
      named isInDanger Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;isInDanger()Z
    • findTarget

      protected boolean findTarget()
      Mappings:
      Namespace Name Mixin selector
      official i Lbji;i()Z
      intermediary method_6301 Lnet/minecraft/class_1374;method_6301()Z
      named findTarget Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;findTarget()Z
    • isActive

      public boolean isActive()
      Mappings:
      Namespace Name Mixin selector
      official k Lbji;k()Z
      intermediary method_26337 Lnet/minecraft/class_1374;method_26337()Z
      named isActive Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;isActive()Z
    • start

      public void start()
      Overrides:
      start in class Goal
      Mappings:
      Namespace Name Mixin selector
      official c Lbip;c()V
      intermediary method_6269 Lnet/minecraft/class_1352;method_6269()V
      named start Lnet/minecraft/entity/ai/goal/Goal;start()V
    • stop

      public void stop()
      Overrides:
      stop in class Goal
      Mappings:
      Namespace Name Mixin selector
      official d Lbip;d()V
      intermediary method_6270 Lnet/minecraft/class_1352;method_6270()V
      named stop Lnet/minecraft/entity/ai/goal/Goal;stop()V
    • shouldContinue

      public boolean shouldContinue()
      Overrides:
      shouldContinue in class Goal
      Mappings:
      Namespace Name Mixin selector
      official b Lbip;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
    • locateClosestWater

      @Nullable protected @Nullable BlockPos locateClosestWater(BlockView world, Entity entity, int rangeX)
      Mappings:
      Namespace Name Mixin selector
      official a Lbji;a(Lcgd;Lbbn;I)Lgt;
      intermediary method_6300 Lnet/minecraft/class_1374;method_6300(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2338;
      named locateClosestWater Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;locateClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/util/math/BlockPos;