Class TargetPredicate

java.lang.Object
net.minecraft.entity.ai.TargetPredicate

public class TargetPredicate
extends Object
Mappings:
Namespace Name
official bal
intermediary net/minecraft/class_4051
named net/minecraft/entity/ai/TargetPredicate
  • Field Details

    • DEFAULT

      public static final TargetPredicate DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official a Lbal;a:Lbal;
      intermediary field_18092 Lnet/minecraft/class_4051;field_18092:Lnet/minecraft/class_4051;
      named DEFAULT Lnet/minecraft/entity/ai/TargetPredicate;DEFAULT:Lnet/minecraft/entity/ai/TargetPredicate;
    • baseMaxDistance

      private double baseMaxDistance
      Mappings:
      Namespace Name Mixin selector
      official b Lbal;b:D
      intermediary field_18093 Lnet/minecraft/class_4051;field_18093:D
      named baseMaxDistance Lnet/minecraft/entity/ai/TargetPredicate;baseMaxDistance:D
    • includeInvulnerable

      private boolean includeInvulnerable
      Mappings:
      Namespace Name Mixin selector
      official c Lbal;c:Z
      intermediary field_18094 Lnet/minecraft/class_4051;field_18094:Z
      named includeInvulnerable Lnet/minecraft/entity/ai/TargetPredicate;includeInvulnerable:Z
    • includeTeammates

      private boolean includeTeammates
      Mappings:
      Namespace Name Mixin selector
      official d Lbal;d:Z
      intermediary field_18095 Lnet/minecraft/class_4051;field_18095:Z
      named includeTeammates Lnet/minecraft/entity/ai/TargetPredicate;includeTeammates:Z
    • includeHidden

      private boolean includeHidden
      Mappings:
      Namespace Name Mixin selector
      official e Lbal;e:Z
      intermediary field_18096 Lnet/minecraft/class_4051;field_18096:Z
      named includeHidden Lnet/minecraft/entity/ai/TargetPredicate;includeHidden:Z
    • ignoreEntityTargetRules

      private boolean ignoreEntityTargetRules
      Mappings:
      Namespace Name Mixin selector
      official f Lbal;f:Z
      intermediary field_18097 Lnet/minecraft/class_4051;field_18097:Z
      named ignoreEntityTargetRules Lnet/minecraft/entity/ai/TargetPredicate;ignoreEntityTargetRules:Z
    • useDistanceScalingFactor

      private boolean useDistanceScalingFactor
      Mappings:
      Namespace Name Mixin selector
      official g Lbal;g:Z
      intermediary field_18098 Lnet/minecraft/class_4051;field_18098:Z
      named useDistanceScalingFactor Lnet/minecraft/entity/ai/TargetPredicate;useDistanceScalingFactor:Z
    • predicate

      private Predicate<LivingEntity> predicate
      Mappings:
      Namespace Name Mixin selector
      official h Lbal;h:Ljava/util/function/Predicate;
      intermediary field_28405 Lnet/minecraft/class_4051;field_28405:Ljava/util/function/Predicate;
      named predicate Lnet/minecraft/entity/ai/TargetPredicate;predicate:Ljava/util/function/Predicate;
  • Constructor Details

    • TargetPredicate

      public TargetPredicate()
  • Method Details

    • copy

      public TargetPredicate copy()
      Mappings:
      Namespace Name Mixin selector
      official a Lbal;a()Lbal;
      intermediary method_33335 Lnet/minecraft/class_4051;method_33335()Lnet/minecraft/class_4051;
      named copy Lnet/minecraft/entity/ai/TargetPredicate;copy()Lnet/minecraft/entity/ai/TargetPredicate;
    • setBaseMaxDistance

      public TargetPredicate setBaseMaxDistance​(double baseMaxDistance)
      Mappings:
      Namespace Name Mixin selector
      official a Lbal;a(D)Lbal;
      intermediary method_18418 Lnet/minecraft/class_4051;method_18418(D)Lnet/minecraft/class_4051;
      named setBaseMaxDistance Lnet/minecraft/entity/ai/TargetPredicate;setBaseMaxDistance(D)Lnet/minecraft/entity/ai/TargetPredicate;
    • includeInvulnerable

      public TargetPredicate includeInvulnerable()
      Mappings:
      Namespace Name Mixin selector
      official b Lbal;b()Lbal;
      intermediary method_18417 Lnet/minecraft/class_4051;method_18417()Lnet/minecraft/class_4051;
      named includeInvulnerable Lnet/minecraft/entity/ai/TargetPredicate;includeInvulnerable()Lnet/minecraft/entity/ai/TargetPredicate;
    • includeTeammates

      public TargetPredicate includeTeammates()
      Mappings:
      Namespace Name Mixin selector
      official c Lbal;c()Lbal;
      intermediary method_18421 Lnet/minecraft/class_4051;method_18421()Lnet/minecraft/class_4051;
      named includeTeammates Lnet/minecraft/entity/ai/TargetPredicate;includeTeammates()Lnet/minecraft/entity/ai/TargetPredicate;
    • includeHidden

      public TargetPredicate includeHidden()
      Mappings:
      Namespace Name Mixin selector
      official d Lbal;d()Lbal;
      intermediary method_18422 Lnet/minecraft/class_4051;method_18422()Lnet/minecraft/class_4051;
      named includeHidden Lnet/minecraft/entity/ai/TargetPredicate;includeHidden()Lnet/minecraft/entity/ai/TargetPredicate;
    • ignoreEntityTargetRules

      public TargetPredicate ignoreEntityTargetRules()
      Mappings:
      Namespace Name Mixin selector
      official e Lbal;e()Lbal;
      intermediary method_18423 Lnet/minecraft/class_4051;method_18423()Lnet/minecraft/class_4051;
      named ignoreEntityTargetRules Lnet/minecraft/entity/ai/TargetPredicate;ignoreEntityTargetRules()Lnet/minecraft/entity/ai/TargetPredicate;
    • ignoreDistanceScalingFactor

      public TargetPredicate ignoreDistanceScalingFactor()
      Mappings:
      Namespace Name Mixin selector
      official f Lbal;f()Lbal;
      intermediary method_18424 Lnet/minecraft/class_4051;method_18424()Lnet/minecraft/class_4051;
      named ignoreDistanceScalingFactor Lnet/minecraft/entity/ai/TargetPredicate;ignoreDistanceScalingFactor()Lnet/minecraft/entity/ai/TargetPredicate;
    • setPredicate

      public TargetPredicate setPredicate​(@Nullable Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbal;a(Ljava/util/function/Predicate;)Lbal;
      intermediary method_18420 Lnet/minecraft/class_4051;method_18420(Ljava/util/function/Predicate;)Lnet/minecraft/class_4051;
      named setPredicate Lnet/minecraft/entity/ai/TargetPredicate;setPredicate(Ljava/util/function/Predicate;)Lnet/minecraft/entity/ai/TargetPredicate;
    • test

      public boolean test​(@Nullable LivingEntity baseEntity, LivingEntity targetEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbal;a(Lari;Lari;)Z
      intermediary method_18419 Lnet/minecraft/class_4051;method_18419(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      named test Lnet/minecraft/entity/ai/TargetPredicate;test(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z