Package net.minecraft.predicate.entity
Class EntityPredicate.Extended
java.lang.Object
net.minecraft.predicate.entity.EntityPredicate.Extended
- Enclosing class:
EntityPredicate
- Mappings:
Namespace Name official bo$bintermediary net/minecraft/class_2048$class_5258named net/minecraft/predicate/entity/EntityPredicate$Extended
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<LootContext>private final LootCondition[]static final EntityPredicate.Extended -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityPredicate.Extendedcreate(LootCondition[] conditions) private static EntityPredicate.ExtendedfromJson(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable JsonElement json) static EntityPredicate.ExtendedgetInJson(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.ExtendedofLegacy(EntityPredicate predicate) static EntityPredicate.Extended[]requireInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer) Parses an extended entity check in a sub-value in JSON.booleantest(LootContext context) toJson(AdvancementEntityPredicateSerializer predicateSerializer) static JsonElementtoPredicatesJsonArray(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer)
-
Field Details
-
EMPTY
- Mappings:
Namespace Name Mixin selector official aLbo$b;a:Lbo$b;intermediary field_24388Lnet/minecraft/class_2048$class_5258;field_24388:Lnet/minecraft/class_2048$class_5258;named EMPTYLnet/minecraft/predicate/entity/EntityPredicate$Extended;EMPTY:Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
conditions
- Mappings:
Namespace Name Mixin selector official bLbo$b;b:[Ldua;intermediary field_24389Lnet/minecraft/class_2048$class_5258;field_24389:[Lnet/minecraft/class_5341;named conditionsLnet/minecraft/predicate/entity/EntityPredicate$Extended;conditions:[Lnet/minecraft/loot/condition/LootCondition;
-
combinedCondition
- Mappings:
Namespace Name Mixin selector official cLbo$b;c:Ljava/util/function/Predicate;intermediary field_24390Lnet/minecraft/class_2048$class_5258;field_24390:Ljava/util/function/Predicate;named combinedConditionLnet/minecraft/predicate/entity/EntityPredicate$Extended;combinedCondition:Ljava/util/function/Predicate;
-
-
Constructor Details
-
Extended
- Mappings:
Namespace Name Mixin selector official <init>Lbo$b;<init>([Ldua;)Vintermediary <init>Lnet/minecraft/class_2048$class_5258;<init>([Lnet/minecraft/class_5341;)Vnamed <init>Lnet/minecraft/predicate/entity/EntityPredicate$Extended;<init>([Lnet/minecraft/loot/condition/LootCondition;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector official aLbo$b;a([Ldua;)Lbo$b;intermediary method_27973Lnet/minecraft/class_2048$class_5258;method_27973([Lnet/minecraft/class_5341;)Lnet/minecraft/class_2048$class_5258;named createLnet/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 aLbo$b;a(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbe;)Lbo$b;intermediary method_27805Lnet/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 getInJsonLnet/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 bLbo$b;b(Lcom/google/gson/JsonObject;Ljava/lang/String;Lbe;)[Lbo$b;intermediary method_27809Lnet/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 requireInJsonLnet/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 aLbo$b;a(Ljava/lang/String;Lbe;Lcom/google/gson/JsonElement;)Lbo$b;intermediary method_27807Lnet/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 fromJsonLnet/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 aLbo$b;a(Lbo;)Lbo$b;intermediary method_27803Lnet/minecraft/class_2048$class_5258;method_27803(Lnet/minecraft/class_2048;)Lnet/minecraft/class_2048$class_5258;named ofLegacyLnet/minecraft/predicate/entity/EntityPredicate$Extended;ofLegacy(Lnet/minecraft/predicate/entity/EntityPredicate;)Lnet/minecraft/predicate/entity/EntityPredicate$Extended;
-
test
- Mappings:
Namespace Name Mixin selector official aLbo$b;a(Ldrg;)Zintermediary method_27806Lnet/minecraft/class_2048$class_5258;method_27806(Lnet/minecraft/class_47;)Znamed testLnet/minecraft/predicate/entity/EntityPredicate$Extended;test(Lnet/minecraft/loot/context/LootContext;)Z
-
toJson
- Mappings:
Namespace Name Mixin selector official aLbo$b;a(Lct;)Lcom/google/gson/JsonElement;intermediary method_27804Lnet/minecraft/class_2048$class_5258;method_27804(Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;named toJsonLnet/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 aLbo$b;a([Lbo$b;Lct;)Lcom/google/gson/JsonElement;intermediary method_27808Lnet/minecraft/class_2048$class_5258;method_27808([Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_5267;)Lcom/google/gson/JsonElement;named toPredicatesJsonArrayLnet/minecraft/predicate/entity/EntityPredicate$Extended;toPredicatesJsonArray([Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateSerializer;)Lcom/google/gson/JsonElement;
-