Class TargetPredicate

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

public class TargetPredicate extends Object
Mappings:
Namespace Name
official bcz
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 Lbcz;a:Lbcz;
      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;
    • MIN_DISTANCE

      private static final double MIN_DISTANCE
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official b Lbcz;b:D
      intermediary field_30263 Lnet/minecraft/class_4051;field_30263:D
      named MIN_DISTANCE Lnet/minecraft/entity/ai/TargetPredicate;MIN_DISTANCE:D
    • attackable

      private final boolean attackable
      Mappings:
      Namespace Name Mixin selector
      official c Lbcz;c:Z
      intermediary field_33720 Lnet/minecraft/class_4051;field_33720:Z
      named attackable Lnet/minecraft/entity/ai/TargetPredicate;attackable:Z
    • baseMaxDistance

      private double baseMaxDistance
      Mappings:
      Namespace Name Mixin selector
      official d Lbcz;d:D
      intermediary field_18093 Lnet/minecraft/class_4051;field_18093:D
      named baseMaxDistance Lnet/minecraft/entity/ai/TargetPredicate;baseMaxDistance:D
    • respectsVisibility

      private boolean respectsVisibility
      Mappings:
      Namespace Name Mixin selector
      official e Lbcz;e:Z
      intermediary field_33721 Lnet/minecraft/class_4051;field_33721:Z
      named respectsVisibility Lnet/minecraft/entity/ai/TargetPredicate;respectsVisibility:Z
    • useDistanceScalingFactor

      private boolean useDistanceScalingFactor
      Mappings:
      Namespace Name Mixin selector
      official f Lbcz;f: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 g Lbcz;g: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

      private TargetPredicate(boolean attackable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbcz;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_4051;<init>(Z)V
      named <init> Lnet/minecraft/entity/ai/TargetPredicate;<init>(Z)V
  • Method Details

    • createAttackable

      public static TargetPredicate createAttackable()
      Mappings:
      Namespace Name Mixin selector
      official a Lbcz;a()Lbcz;
      intermediary method_36625 Lnet/minecraft/class_4051;method_36625()Lnet/minecraft/class_4051;
      named createAttackable Lnet/minecraft/entity/ai/TargetPredicate;createAttackable()Lnet/minecraft/entity/ai/TargetPredicate;
    • createNonAttackable

      public static TargetPredicate createNonAttackable()
      Mappings:
      Namespace Name Mixin selector
      official b Lbcz;b()Lbcz;
      intermediary method_36626 Lnet/minecraft/class_4051;method_36626()Lnet/minecraft/class_4051;
      named createNonAttackable Lnet/minecraft/entity/ai/TargetPredicate;createNonAttackable()Lnet/minecraft/entity/ai/TargetPredicate;
    • copy

      public TargetPredicate copy()
      Mappings:
      Namespace Name Mixin selector
      official c Lbcz;c()Lbcz;
      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 Lbcz;a(D)Lbcz;
      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;
    • visibleOnly

      public TargetPredicate visibleOnly()
      Mappings:
      Namespace Name Mixin selector
      official d Lbcz;d()Lbcz;
      intermediary method_36627 Lnet/minecraft/class_4051;method_36627()Lnet/minecraft/class_4051;
      named visibleOnly Lnet/minecraft/entity/ai/TargetPredicate;visibleOnly()Lnet/minecraft/entity/ai/TargetPredicate;
    • ignoreDistanceScalingFactor

      public TargetPredicate ignoreDistanceScalingFactor()
      Mappings:
      Namespace Name Mixin selector
      official e Lbcz;e()Lbcz;
      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 @Nullable Predicate<LivingEntity> predicate)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcz;a(Ljava/util/function/Predicate;)Lbcz;
      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 @Nullable LivingEntity baseEntity, LivingEntity targetEntity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbcz;a(Latt;Latt;)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