Class TargetPredicate

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

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

    • DEFAULT

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

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

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

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

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

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

      Mappings:
      Namespace Name Mixin selector
      named predicate Lnet/minecraft/entity/ai/TargetPredicate;predicate:Ljava/util/function/Predicate;
      intermediary field_28405 Lnet/minecraft/class_4051;field_28405:Ljava/util/function/Predicate;
      official g Lcei;g:Ljava/util/function/Predicate;
  • Constructor Details

    • TargetPredicate

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

    • createAttackable

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

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

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

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

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

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

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

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