Class EscapeDangerGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.EscapeDangerGoal
Direct Known Subclasses:
FoxEntity.EscapeWhenNotAggressiveGoal, PandaEntity.PandaEscapeDangerGoal, RabbitEntity.EscapeDangerGoal, TameableEntity.class_9788, TurtleEntity.TurtleEscapeDangerGoal

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

    • RANGE_Y

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

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

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

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

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

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

      protected boolean active
      Mappings:
      Namespace Name Mixin selector
      named active Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;active:Z
      intermediary field_23227 Lnet/minecraft/class_1374;field_23227:Z
      official h Lcbd;h:Z
    • field_52011

      private final Function<PathAwareEntity,TagKey<DamageType>> field_52011
      Mappings:
      Namespace Name Mixin selector
      named field_52011 Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;field_52011:Ljava/util/function/Function;
      intermediary field_52011 Lnet/minecraft/class_1374;field_52011:Ljava/util/function/Function;
      official a Lcbd;a:Ljava/util/function/Function;
  • Constructor Details

    • EscapeDangerGoal

      public EscapeDangerGoal(PathAwareEntity pathAwareEntity, double double2)
    • EscapeDangerGoal

      public EscapeDangerGoal(PathAwareEntity pathAwareEntity, double double2, TagKey<DamageType> tagKey)
    • EscapeDangerGoal

      public EscapeDangerGoal(PathAwareEntity mob, double speed, Function<PathAwareEntity,TagKey<DamageType>> function)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/EscapeDangerGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;DLjava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_1374;<init>(Lnet/minecraft/class_1314;DLjava/util/function/Function;)V
      official <init> Lcbd;<init>(Lbtu;DLjava/util/function/Function;)V
  • Method Details

    • canStart

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

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

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

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

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

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

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

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