Package net.minecraft.predicate.entity
Class EntityPredicate.Extended
java.lang.Object
net.minecraft.predicate.entity.EntityPredicate.Extended
- Enclosing class:
- EntityPredicate
public static class EntityPredicate.Extended extends Object
- Mappings:
Namespace Name official bg$b
intermediary net/minecraft/class_2048$class_5258
named net/minecraft/predicate/entity/EntityPredicate$Extended
-
Field Summary
Fields Modifier and Type Field Description private Predicate<LootContext>
combinedCondition
private LootCondition[]
conditions
static EntityPredicate.Extended
EMPTY
-
Constructor Summary
Constructors Modifier Constructor Description private
Extended(LootCondition[] conditions)
-
Method Summary
Modifier and Type Method Description static EntityPredicate.Extended
create(LootCondition[] conditions)
private static EntityPredicate.Extended
fromJson(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, 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)
JsonElement
toJson(AdvancementEntityPredicateSerializer predicateSerializer)
static JsonElement
toPredicatesJsonArray(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official a
Lbg$b;a:Lbg$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
Lbg$b;b:[Ldha;
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
Lbg$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>
Lbg$b;<init>([Ldha;)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
Lbg$b;a([Ldha;)Lbg$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:
- Mojang description
- Mappings:
Namespace Name Mixin selector official a
Lbg$b;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lax;)Lbg$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
Lbg$b;b(Lcom/google/gson/JsonObject;Ljava/lang/String;Lax;)[Lbg$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 JsonElement json)- Mappings:
Namespace Name Mixin selector official a
Lbg$b;a(Ljava/lang/String;Lax;Lcom/google/gson/JsonElement;)Lbg$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
Lbg$b;a(Lbg;)Lbg$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
Lbg$b;a(Ldei;)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
Lbg$b;a(Lci;)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
Lbg$b;a([Lbg$b;Lci;)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;
-