Class PlayerPredicate

java.lang.Object
net.minecraft.predicate.entity.PlayerPredicate
All Implemented Interfaces:
TypeSpecificPredicate

public class PlayerPredicate extends Object implements TypeSpecificPredicate
Mappings:
Namespace Name
official cq
intermediary net/minecraft/class_4553
named net/minecraft/predicate/entity/PlayerPredicate
  • Field Details

    • field_33928

      public static final int field_33928
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcq;b:I
      intermediary field_33928 Lnet/minecraft/class_4553;field_33928:I
      named field_33928 Lnet/minecraft/predicate/entity/PlayerPredicate;field_33928:I
    • experienceLevel

      private final NumberRange.IntRange experienceLevel
      Mappings:
      Namespace Name Mixin selector
      official c Lcq;c:Lcj$d;
      intermediary field_20723 Lnet/minecraft/class_4553;field_20723:Lnet/minecraft/class_2096$class_2100;
      named experienceLevel Lnet/minecraft/predicate/entity/PlayerPredicate;experienceLevel:Lnet/minecraft/predicate/NumberRange$IntRange;
    • gameMode

      @Nullable private final @Nullable GameMode gameMode
      Mappings:
      Namespace Name Mixin selector
      official d Lcq;d:Lcgu;
      intermediary field_20724 Lnet/minecraft/class_4553;field_20724:Lnet/minecraft/class_1934;
      named gameMode Lnet/minecraft/predicate/entity/PlayerPredicate;gameMode:Lnet/minecraft/world/GameMode;
    • stats

      private final Map<Stat<?>,NumberRange.IntRange> stats
      Mappings:
      Namespace Name Mixin selector
      official e Lcq;e:Ljava/util/Map;
      intermediary field_20725 Lnet/minecraft/class_4553;field_20725:Ljava/util/Map;
      named stats Lnet/minecraft/predicate/entity/PlayerPredicate;stats:Ljava/util/Map;
    • recipes

      private final Object2BooleanMap<Identifier> recipes
      Mappings:
      Namespace Name Mixin selector
      official f Lcq;f:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      intermediary field_20726 Lnet/minecraft/class_4553;field_20726:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
      named recipes Lnet/minecraft/predicate/entity/PlayerPredicate;recipes:Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;
    • advancements

      Mappings:
      Namespace Name Mixin selector
      official g Lcq;g:Ljava/util/Map;
      intermediary field_20727 Lnet/minecraft/class_4553;field_20727:Ljava/util/Map;
      named advancements Lnet/minecraft/predicate/entity/PlayerPredicate;advancements:Ljava/util/Map;
    • lookingAt

      private final EntityPredicate lookingAt
      Mappings:
      Namespace Name Mixin selector
      official h Lcq;h:Lbo;
      intermediary field_33929 Lnet/minecraft/class_4553;field_33929:Lnet/minecraft/class_2048;
      named lookingAt Lnet/minecraft/predicate/entity/PlayerPredicate;lookingAt:Lnet/minecraft/predicate/entity/EntityPredicate;
  • Constructor Details

    • PlayerPredicate

      Mappings:
      Namespace Name Mixin selector
      official <init> Lcq;<init>(Lcj$d;Lcgu;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;Ljava/util/Map;Lbo;)V
      intermediary <init> Lnet/minecraft/class_4553;<init>(Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_1934;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;Ljava/util/Map;Lnet/minecraft/class_2048;)V
      named <init> Lnet/minecraft/predicate/entity/PlayerPredicate;<init>(Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/world/GameMode;Ljava/util/Map;Lit/unimi/dsi/fastutil/objects/Object2BooleanMap;Ljava/util/Map;Lnet/minecraft/predicate/entity/EntityPredicate;)V
  • Method Details

    • criterionFromJson

      private static PlayerPredicate.AdvancementPredicate criterionFromJson(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official b Lcq;b(Lcom/google/gson/JsonElement;)Lcq$c;
      intermediary method_22503 Lnet/minecraft/class_4553;method_22503(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_4553$class_4556;
      named criterionFromJson Lnet/minecraft/predicate/entity/PlayerPredicate;criterionFromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/PlayerPredicate$AdvancementPredicate;
    • test

      public boolean test(Entity entity, ServerWorld world, @Nullable @Nullable Vec3d pos)
      Specified by:
      test in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a(Lbbn;Lagg;Ldwq;)Z
      intermediary method_22497 Lnet/minecraft/class_7376;method_22497(Lnet/minecraft/class_1297;Lnet/minecraft/class_3218;Lnet/minecraft/class_243;)Z
      named test Lnet/minecraft/predicate/entity/TypeSpecificPredicate;test(Lnet/minecraft/entity/Entity;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/Vec3d;)Z
    • fromJson

      public static PlayerPredicate fromJson(JsonObject json)
      Mappings:
      Namespace Name Mixin selector
      official a Lcq;a(Lcom/google/gson/JsonObject;)Lcq;
      intermediary method_22499 Lnet/minecraft/class_4553;method_22499(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_4553;
      named fromJson Lnet/minecraft/predicate/entity/PlayerPredicate;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/predicate/entity/PlayerPredicate;
    • getStat

      private static <T> Stat<T> getStat(StatType<T> type, Identifier id)
      Mappings:
      Namespace Name Mixin selector
      official a Lcq;a(Lakf;Labb;)Lakd;
      intermediary method_22496 Lnet/minecraft/class_4553;method_22496(Lnet/minecraft/class_3448;Lnet/minecraft/class_2960;)Lnet/minecraft/class_3445;
      named getStat Lnet/minecraft/predicate/entity/PlayerPredicate;getStat(Lnet/minecraft/stat/StatType;Lnet/minecraft/util/Identifier;)Lnet/minecraft/stat/Stat;
    • getStatId

      private static <T> Identifier getStatId(Stat<T> stat)
      Mappings:
      Namespace Name Mixin selector
      official a Lcq;a(Lakd;)Labb;
      intermediary method_22495 Lnet/minecraft/class_4553;method_22495(Lnet/minecraft/class_3445;)Lnet/minecraft/class_2960;
      named getStatId Lnet/minecraft/predicate/entity/PlayerPredicate;getStatId(Lnet/minecraft/stat/Stat;)Lnet/minecraft/util/Identifier;
    • typeSpecificToJson

      public JsonObject typeSpecificToJson()
      Specified by:
      typeSpecificToJson in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official a Lbp;a()Lcom/google/gson/JsonObject;
      intermediary method_22494 Lnet/minecraft/class_7376;method_22494()Lcom/google/gson/JsonObject;
      named typeSpecificToJson Lnet/minecraft/predicate/entity/TypeSpecificPredicate;typeSpecificToJson()Lcom/google/gson/JsonObject;
    • getDeserializer

      public TypeSpecificPredicate.Deserializer getDeserializer()
      Specified by:
      getDeserializer in interface TypeSpecificPredicate
      Mappings:
      Namespace Name Mixin selector
      official c Lbp;c()Lbp$a;
      intermediary method_43099 Lnet/minecraft/class_7376;method_43099()Lnet/minecraft/class_7376$class_7377;
      named getDeserializer Lnet/minecraft/predicate/entity/TypeSpecificPredicate;getDeserializer()Lnet/minecraft/predicate/entity/TypeSpecificPredicate$Deserializer;