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 cgw
  • 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 Lcgw;a:Lcgw;
    • 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 Lcgw;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 Lcgw;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 Lcgw;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 Lcgw;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 Lcgw;f:Z
    • predicate

      Mappings:
      Namespace Name Mixin selector
      named predicate Lnet/minecraft/entity/ai/TargetPredicate;predicate:Lnet/minecraft/entity/ai/TargetPredicate$EntityPredicate;
      intermediary field_28405 Lnet/minecraft/class_4051;field_28405:Lnet/minecraft/class_4051$class_10254;
      official g Lcgw;g:Lcgw$a;
  • 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> Lcgw;<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 Lcgw;a()Lcgw;
    • 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 Lcgw;b()Lcgw;
    • 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 Lcgw;c()Lcgw;
    • 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 Lcgw;a(D)Lcgw;
    • 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 Lcgw;d()Lcgw;
    • 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 Lcgw;e()Lcgw;
    • setPredicate

      Mappings:
      Namespace Name Mixin selector
      named setPredicate Lnet/minecraft/entity/ai/TargetPredicate;setPredicate(Lnet/minecraft/entity/ai/TargetPredicate$EntityPredicate;)Lnet/minecraft/entity/ai/TargetPredicate;
      intermediary method_18420 Lnet/minecraft/class_4051;method_18420(Lnet/minecraft/class_4051$class_10254;)Lnet/minecraft/class_4051;
      official a Lcgw;a(Lcgw$a;)Lcgw;
    • test

      public boolean test(ServerWorld world, @Nullable @Nullable LivingEntity tester, LivingEntity target)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/entity/ai/TargetPredicate;test(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_18419 Lnet/minecraft/class_4051;method_18419(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
      official a Lcgw;a(Lash;Lbwf;Lbwf;)Z