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
named net/minecraft/entity/ai/goal/ProjectileAttackGoal
intermediary net/minecraft/class_1381
official cbl
  • Field Details

    • mob

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

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

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

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

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

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

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

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

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

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

    • ProjectileAttackGoal

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

      public ProjectileAttackGoal(RangedAttackMob mob, double mobSpeed, int minIntervalTicks, int maxIntervalTicks, float maxShootRange)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/ProjectileAttackGoal;<init>(Lnet/minecraft/entity/ai/RangedAttackMob;DIIF)V
      intermediary <init> Lnet/minecraft/class_1381;<init>(Lnet/minecraft/class_1603;DIIF)V
      official <init> Lcbl;<init>(Lckh;DIIF)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 Lcam;b()Z
    • 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 Lcam;c()Z
    • 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 Lcam;e()V
    • shouldRunEveryTick

      public boolean shouldRunEveryTick()
      Returns if the goal should run every tick or not.

      This returns false by default. If this returns false, the goal will tick once after the entity is spawned, and will tick every other tick.

      Overrides:
      shouldRunEveryTick in class Goal
      Returns:
      if the goal should run every tick or not
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named shouldRunEveryTick Lnet/minecraft/entity/ai/goal/Goal;shouldRunEveryTick()Z
      intermediary method_38846 Lnet/minecraft/class_1352;method_38846()Z
      official V_ Lcam;V_()Z
    • tick

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