Package net.minecraft.predicate.entity
Class PlayerPredicate
java.lang.Object
net.minecraft.predicate.entity.PlayerPredicate
- All Implemented Interfaces:
TypeSpecificPredicate
- Mappings:
Namespace Name official cp
intermediary net/minecraft/class_4553
named net/minecraft/predicate/entity/PlayerPredicate
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static interface
static class
private static class
Nested classes/interfaces inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
TypeSpecificPredicate.Deserializer, TypeSpecificPredicate.Deserializers
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<Identifier,
PlayerPredicate.AdvancementPredicate> private final NumberRange.IntRange
static final int
private final EntityPredicate
private final Object2BooleanMap<Identifier>
private final Map<Stat<?>,
NumberRange.IntRange> Fields inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
ANY
-
Constructor Summary
ConstructorDescriptionPlayerPredicate
(NumberRange.IntRange experienceLevel, @Nullable GameMode gameMode, Map<Stat<?>, NumberRange.IntRange> stats, Object2BooleanMap<Identifier> recipes, Map<Identifier, PlayerPredicate.AdvancementPredicate> advancements, EntityPredicate lookingAt) -
Method Summary
Modifier and TypeMethodDescriptionprivate static PlayerPredicate.AdvancementPredicate
criterionFromJson
(JsonElement json) static PlayerPredicate
fromJson
(JsonObject json) private static <T> Stat<T>
getStat
(StatType<T> type, Identifier id) private static <T> Identifier
boolean
test
(Entity entity, ServerWorld world, @Nullable Vec3d pos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.predicate.entity.TypeSpecificPredicate
toJson
-
Field Details
-
LOOKING_AT_DISTANCE
public static final int LOOKING_AT_DISTANCE- See Also:
- Mappings:
Namespace Name Mixin selector official b
Lcp;b:I
intermediary field_33928
Lnet/minecraft/class_4553;field_33928:I
named LOOKING_AT_DISTANCE
Lnet/minecraft/predicate/entity/PlayerPredicate;LOOKING_AT_DISTANCE:I
-
experienceLevel
- Mappings:
Namespace Name Mixin selector official c
Lcp;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
- Mappings:
Namespace Name Mixin selector official d
Lcp;d:Lcmj;
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
- Mappings:
Namespace Name Mixin selector official e
Lcp;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
- Mappings:
Namespace Name Mixin selector official f
Lcp;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
Lcp;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
- Mappings:
Namespace Name Mixin selector official h
Lcp;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
PlayerPredicate(NumberRange.IntRange experienceLevel, @Nullable @Nullable GameMode gameMode, Map<Stat<?>, NumberRange.IntRange> stats, Object2BooleanMap<Identifier> recipes, Map<Identifier, PlayerPredicate.AdvancementPredicate> advancements, EntityPredicate lookingAt) - Mappings:
Namespace Name Mixin selector official <init>
Lcp;<init>(Lcj$d;Lcmj;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
- Mappings:
Namespace Name Mixin selector official b
Lcp;b(Lcom/google/gson/JsonElement;)Lcp$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
- Specified by:
test
in interfaceTypeSpecificPredicate
- Mappings:
Namespace Name Mixin selector official a
Lbp;a(Lbfj;Laif;Leei;)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
- Mappings:
Namespace Name Mixin selector official a
Lcp;a(Lcom/google/gson/JsonObject;)Lcp;
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
- Mappings:
Namespace Name Mixin selector official a
Lcp;a(Lamq;Lacq;)Lamo;
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
- Mappings:
Namespace Name Mixin selector official a
Lcp;a(Lamo;)Lacq;
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
- Specified by:
typeSpecificToJson
in interfaceTypeSpecificPredicate
- 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
- Specified by:
getDeserializer
in interfaceTypeSpecificPredicate
- 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;
-