Class DisableableFollowTargetGoal<T extends LivingEntity>


public class DisableableFollowTargetGoal<T extends LivingEntity> extends ActiveTargetGoal<T>
An active target goal that can be disabled so that it cannot start.
Mappings:
Namespace Name
named net/minecraft/entity/ai/goal/DisableableFollowTargetGoal
intermediary net/minecraft/class_3760
official cci
  • Field Details

    • enabled

      private boolean enabled
      Mappings:
      Namespace Name Mixin selector
      named enabled Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;enabled:Z
      intermediary field_17281 Lnet/minecraft/class_3760;field_17281:Z
      official i Lcci;i:Z
  • Constructor Details

    • DisableableFollowTargetGoal

      public DisableableFollowTargetGoal(RaiderEntity actor, Class<T> targetEntityClass, int reciprocalChance, boolean checkVisibility, boolean checkCanNavigate, @Nullable @Nullable Predicate<LivingEntity> targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;<init>(Lnet/minecraft/entity/raid/RaiderEntity;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_3760;<init>(Lnet/minecraft/class_3763;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
      official <init> Lcci;<init>(Lcok;Ljava/lang/Class;IZZLjava/util/function/Predicate;)V
  • Method Details

    • setEnabled

      public void setEnabled(boolean enabled)
      Mappings:
      Namespace Name Mixin selector
      named setEnabled Lnet/minecraft/entity/ai/goal/DisableableFollowTargetGoal;setEnabled(Z)V
      intermediary method_17351 Lnet/minecraft/class_3760;method_17351(Z)V
      official a Lcci;a(Z)V
    • canStart

      public boolean canStart()
      Overrides:
      canStart in class ActiveTargetGoal<T extends LivingEntity>
      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 a Lcao;a()Z