Class UntamedActiveTargetGoal<T extends LivingEntity>


public class UntamedActiveTargetGoal<T extends LivingEntity> extends ActiveTargetGoal<T>
An active target goal that only starts for untamed tameable animals. In addition, the continue condition for maintaining the target uses the target predicate than that of the standard track target goal.
Mappings:
Namespace Name
official bop
intermediary net/minecraft/class_1404
named net/minecraft/entity/ai/goal/UntamedActiveTargetGoal
  • Field Details

    • tameable

      private final TameableEntity tameable
      Mappings:
      Namespace Name Mixin selector
      official i Lbop;i:Lbgt;
      intermediary field_6656 Lnet/minecraft/class_1404;field_6656:Lnet/minecraft/class_1321;
      named tameable Lnet/minecraft/entity/ai/goal/UntamedActiveTargetGoal;tameable:Lnet/minecraft/entity/passive/TameableEntity;
  • Constructor Details

    • UntamedActiveTargetGoal

      public UntamedActiveTargetGoal(TameableEntity tameable, Class<T> targetClass, boolean checkVisibility, @Nullable @Nullable Predicate<LivingEntity> targetPredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbop;<init>(Lbgt;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_1404;<init>(Lnet/minecraft/class_1321;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
      named <init> Lnet/minecraft/entity/ai/goal/UntamedActiveTargetGoal;<init>(Lnet/minecraft/entity/passive/TameableEntity;Ljava/lang/Class;ZLjava/util/function/Predicate;)V
  • Method Details

    • canStart

      public boolean canStart()
      Overrides:
      canStart in class ActiveTargetGoal<T extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbmt;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 TrackTargetGoal
      Mappings:
      Namespace Name Mixin selector
      official b Lbmt;b()Z
      intermediary method_6266 Lnet/minecraft/class_1352;method_6266()Z
      named shouldContinue Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z