Package net.minecraft.predicate.entity
Class EntityPredicate.Extended
java.lang.Object
net.minecraft.predicate.entity.EntityPredicate.Extended
- Enclosing class:
- EntityPredicate
- Mappings:
Namespace Name official bm$b
intermediary net/minecraft/class_2048$class_5258
named net/minecraft/predicate/entity/EntityPredicate$Extended
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Predicate<LootContext>
private final LootCondition[]
static final EntityPredicate.Extended
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityPredicate.Extended
create
(LootCondition[] conditions) private static EntityPredicate.Extended
fromJson
(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable JsonElement json) static EntityPredicate.Extended
getInJson
(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer) Parses an extended entity check in a sub-value in JSON, accepting objects as simple entity predicates or array as list of loot conditions.static EntityPredicate.Extended
ofLegacy
(EntityPredicate predicate) static EntityPredicate.Extended[]
requireInJson
(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer) Parses an extended entity check in a sub-value in JSON.boolean
test
(LootContext context) toJson
(AdvancementEntityPredicateSerializer predicateSerializer) static JsonElement
toPredicatesJsonArray
(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a:Lbm$b;
intermediary field_24388
Lnet/minecraft/class_2048$class_5258;field_24388:Lnet/minecraft/class_2048$class_5258;
named EMPTY
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;EMPTY:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
conditions
- Mappings:
Namespace Name Mixin selector official b
Lbm$b;b:[Ldlh;
intermediary field_24389
Lnet/minecraft/class_2048$class_5258;field_24389:[Lnet/minecraft/class_5341;
named conditions
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;conditions:[Lnet/minecraft/loot/condition/LootCondition;
-
combinedCondition
- Mappings:
Namespace Name Mixin selector official c
Lbm$b;c:Ljava/util/function/Predicate;
intermediary field_24390
Lnet/minecraft/class_2048$class_5258;field_24390:Ljava/util/function/Predicate;
named combinedCondition
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;combinedCondition:Ljava/util/function/Predicate;
-
-
Constructor Details
-
Extended
- Mappings:
Namespace Name Mixin selector official <init>
Lbm$b;<init>([Ldlh;)V
intermediary <init>
Lnet/minecraft/class_2048$class_5258;<init>([Lnet/minecraft/class_5341;)V
named <init>
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;<init>([Lnet/minecraft/loot/condition/LootCondition;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a([Ldlh;)Lbm$b;
intermediary method_27973
Lnet/minecraft/class_2048$class_5258;method_27973([Lnet/minecraft/class_5341;)Lnet/minecraft/class_2048$class_5258;
named create
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;create([Lnet/minecraft/loot/condition/LootCondition;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
getInJson
public static EntityPredicate.Extended getInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer) Parses an extended entity check in a sub-value in JSON, accepting objects as simple entity predicates or array as list of loot conditions.- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbd;)Lbm$b;
intermediary method_27805
Lnet/minecraft/class_2048$class_5258;method_27805(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)Lnet/minecraft/class_2048$class_5258;
named getInJson
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;getInJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
requireInJson
public static EntityPredicate.Extended[] requireInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer) Parses an extended entity check in a sub-value in JSON. The value must be absent, JSON null, or an array, or the parser will error. In other words, it does not accept object sub-values.- Mappings:
Namespace Name Mixin selector official b
Lbm$b;b(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbd;)[Lbm$b;
intermediary method_27809
Lnet/minecraft/class_2048$class_5258;method_27809(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/class_5257;)[Lnet/minecraft/class_2048$class_5258;
named requireInJson
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;requireInJson(Lcom/google/gson/JsonObject;Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)[Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
fromJson
private static EntityPredicate.Extended fromJson(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable @Nullable JsonElement json) - Mappings:
Namespace Name Mixin selector official a
Lbm$b;a(Ljava/lang/String;Lbd;Lcom/google/gson/JsonElement;)Lbm$b;
intermediary method_27807
Lnet/minecraft/class_2048$class_5258;method_27807(Ljava/lang/String;Lnet/minecraft/class_5257;Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2048$class_5258;
named fromJson
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;fromJson(Ljava/lang/String;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
ofLegacy
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a(Lbm;)Lbm$b;
intermediary method_27803
Lnet/minecraft/class_2048$class_5258;method_27803(Lnet/minecraft/class_2048;)Lnet/minecraft/class_2048$class_5258;
named ofLegacy
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;ofLegacy(Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a(Ldip;)Z
intermediary method_27806
Lnet/minecraft/class_2048$class_5258;method_27806(Lnet/minecraft/class_47;)Z
named test
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;test(Lnet/minecraft/loot/context/LootContext;)Z
-
toJson
- Mappings:
Namespace Name Mixin selector official a
Lbm$b;a(Lcq;)Lcom/google/gson/JsonElement;
intermediary method_27804
Lnet/minecraft/class_2048$class_5258;method_27804(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;toJson(Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonElement;
-
toPredicatesJsonArray
public static JsonElement toPredicatesJsonArray(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer) - Mappings:
Namespace Name Mixin selector official a
Lbm$b;a([Lbm$b;Lcq;)Lcom/google/gson/JsonElement;
intermediary method_27808
Lnet/minecraft/class_2048$class_5258;method_27808([Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;
named toPredicatesJsonArray
Lnet/minecraft/predicate/entity/EntityPredicate$Extended;toPredicatesJsonArray([Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonElement;
-