Class TargetPredicate

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

public class TargetPredicate extends Object
Mappings:
Namespace Name
official bgn
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 Lbgn;a:Lbgn;
      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:
      Mappings:
      Namespace Name Mixin selector
      official b Lbgn;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 Lbgn;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 Lbgn;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 Lbgn;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 Lbgn;f:Z
      intermediary field_18098 Lnet/minecraft/class_4051;field_18098:Z
      named useDistanceScalingFactor Lnet/minecraft/entity/ai/TargetPredicate;useDistanceScalingFactor:Z
    • predicate

      Mappings:
      Namespace Name Mixin selector
      official g Lbgn;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> Lbgn;<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 Lbgn;a()Lbgn;
      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 Lbgn;b()Lbgn;
      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 Lbgn;c()Lbgn;
      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 Lbgn;a(D)Lbgn;
      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;
    • ignoreVisibility

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

      public TargetPredicate ignoreDistanceScalingFactor()
      Mappings:
      Namespace Name Mixin selector
      official e Lbgn;e()Lbgn;
      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 Lbgn;a(Ljava/util/function/Predicate;)Lbgn;
      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 Lbgn;a(Laxh;Laxh;)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