Class RaiderEntity.PatrolApproachGoal

java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.raid.RaiderEntity.PatrolApproachGoal
Enclosing class:
RaiderEntity

protected class RaiderEntity.PatrolApproachGoal extends Goal
Mappings:
Namespace Name
named net/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal
intermediary net/minecraft/class_3763$class_4223
official crk$a
  • Field Details

    • raider

      private final RaiderEntity raider
      Mappings:
      Namespace Name Mixin selector
      named raider Lnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;raider:Lnet/minecraft/entity/raid/RaiderEntity;
      intermediary field_18883 Lnet/minecraft/class_3763$class_4223;field_18883:Lnet/minecraft/class_3763;
      official b Lcrk$a;b:Lcrk;
    • squaredDistance

      private final float squaredDistance
      Mappings:
      Namespace Name Mixin selector
      named squaredDistance Lnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;squaredDistance:F
      intermediary field_18884 Lnet/minecraft/class_3763$class_4223;field_18884:F
      official c Lcrk$a;c:F
    • closeRaiderPredicate

      public final TargetPredicate closeRaiderPredicate
      Mappings:
      Namespace Name Mixin selector
      named closeRaiderPredicate Lnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;closeRaiderPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
      intermediary field_18881 Lnet/minecraft/class_3763$class_4223;field_18881:Lnet/minecraft/class_4051;
      official a Lcrk$a;a:Lcgw;
  • Constructor Details

    • PatrolApproachGoal

      public PatrolApproachGoal(IllagerEntity illager, float distance)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/raid/RaiderEntity$PatrolApproachGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Lnet/minecraft/entity/mob/IllagerEntity;F)V
      intermediary <init> Lnet/minecraft/class_3763$class_4223;<init>(Lnet/minecraft/class_3763;Lnet/minecraft/class_1543;F)V
      official <init> Lcrk$a;<init>(Lcrk;Lcmd;F)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 Lcdd;b()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 Lcdd;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 Lcdd;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_ Lcdd;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 Lcdd;a()V