Class ProjectileAttackGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.ProjectileAttackGoal
Direct Known Subclasses:
DrownedEntity.TridentAttackGoal

public class ProjectileAttackGoal
extends Goal
Mappings:
Namespace Name
official axx
intermediary net/minecraft/class_1381
named net/minecraft/entity/ai/goal/ProjectileAttackGoal
  • Field Details

    • mob

      private final MobEntity mob
      Mappings:
      Namespace Name Mixin selector
      official a Laxx;a:Larj;
      intermediary field_6583 Lnet/minecraft/class_1381;field_6583:Lnet/minecraft/class_1308;
      named mob Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;mob:Lnet/minecraft/entity/mob/MobEntity;
    • owner

      private final RangedAttackMob owner
      Mappings:
      Namespace Name Mixin selector
      official b Laxx;b:Lbfj;
      intermediary field_6582 Lnet/minecraft/class_1381;field_6582:Lnet/minecraft/class_1603;
      named owner Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;owner:Lnet/minecraft/entity/ai/RangedAttackMob;
    • target

      private LivingEntity target
      Mappings:
      Namespace Name Mixin selector
      official c Laxx;c:Lari;
      intermediary field_6580 Lnet/minecraft/class_1381;field_6580:Lnet/minecraft/class_1309;
      named target Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;target:Lnet/minecraft/entity/LivingEntity;
    • updateCountdownTicks

      private int updateCountdownTicks
      Mappings:
      Namespace Name Mixin selector
      official d Laxx;d:I
      intermediary field_6581 Lnet/minecraft/class_1381;field_6581:I
      named updateCountdownTicks Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;updateCountdownTicks:I
    • mobSpeed

      private final double mobSpeed
      Mappings:
      Namespace Name Mixin selector
      official e Laxx;e:D
      intermediary field_6586 Lnet/minecraft/class_1381;field_6586:D
      named mobSpeed Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;mobSpeed:D
    • seenTargetTicks

      private int seenTargetTicks
      Mappings:
      Namespace Name Mixin selector
      official f Laxx;f:I
      intermediary field_6579 Lnet/minecraft/class_1381;field_6579:I
      named seenTargetTicks Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;seenTargetTicks:I
    • minIntervalTicks

      private final int minIntervalTicks
      Mappings:
      Namespace Name Mixin selector
      official g Laxx;g:I
      intermediary field_6578 Lnet/minecraft/class_1381;field_6578:I
      named minIntervalTicks Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;minIntervalTicks:I
    • maxIntervalTicks

      private final int maxIntervalTicks
      Mappings:
      Namespace Name Mixin selector
      official h Laxx;h:I
      intermediary field_6577 Lnet/minecraft/class_1381;field_6577:I
      named maxIntervalTicks Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;maxIntervalTicks:I
    • maxShootRange

      private final float maxShootRange
      Mappings:
      Namespace Name Mixin selector
      official i Laxx;i:F
      intermediary field_6585 Lnet/minecraft/class_1381;field_6585:F
      named maxShootRange Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;maxShootRange:F
    • squaredMaxShootRange

      private final float squaredMaxShootRange
      Mappings:
      Namespace Name Mixin selector
      official j Laxx;j:F
      intermediary field_6584 Lnet/minecraft/class_1381;field_6584:F
      named squaredMaxShootRange Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;squaredMaxShootRange:F
  • Constructor Details

    • ProjectileAttackGoal

      public ProjectileAttackGoal​(RangedAttackMob mob, double mobSpeed, int intervalTicks, float maxShootRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxx;<init>(Lbfj;DIF)V
      intermediary <init> Lnet/minecraft/class_1381;<init>(Lnet/minecraft/class_1603;DIF)V
      named <init> Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;<init>(Lnet/minecraft/entity/ai/RangedAttackMob;DIF)V
    • ProjectileAttackGoal

      public ProjectileAttackGoal​(RangedAttackMob mob, double mobSpeed, int minIntervalTicks, int maxIntervalTicks, float maxShootRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxx;<init>(Lbfj;DIIF)V
      intermediary <init> Lnet/minecraft/class_1381;<init>(Lnet/minecraft/class_1603;DIIF)V
      named <init> Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;<init>(Lnet/minecraft/entity/ai/RangedAttackMob;DIIF)V
  • Method Details

    • canStart

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

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

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

      public void tick()
      Overrides:
      tick in class Goal
      Mappings:
      Namespace Name Mixin selector
      official e Lawx;e()V
      intermediary method_6268 Lnet/minecraft/class_1352;method_6268()V
      named tick Lnet/minecraft/entity/ai/goal/Goal;tick()V