Class EntityPredicate.Composite
java.lang.Object
net.minecraft.advancements.critereon.EntityPredicate.Composite
- Enclosing class:
- EntityPredicate
-
Field Summary
Modifier and TypeFieldDescriptionstatic EntityPredicate.Composite
private Predicate<LootContext>
private LootItemCondition[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntityPredicate.Composite
create(LootItemCondition... p_36691_)
private static EntityPredicate.Composite
fromElement(String p_36684_, DeserializationContext p_36685_, com.google.gson.JsonElement p_36686_)
static EntityPredicate.Composite
fromJson(com.google.gson.JsonObject p_36678_, String p_36679_, DeserializationContext p_36680_)
static EntityPredicate.Composite[]
fromJsonArray(com.google.gson.JsonObject p_36693_, String p_36694_, DeserializationContext p_36695_)
boolean
matches(LootContext p_36682_)
static com.google.gson.JsonElement
toJson(EntityPredicate.Composite[] p_36688_, SerializationContext p_36689_)
com.google.gson.JsonElement
toJson(SerializationContext p_36676_)
static EntityPredicate.Composite
wrap(EntityPredicate p_36674_)
-
Field Details
-
ANY
-
conditions
-
compositePredicates
-
-
Constructor Details
-
Composite
-
-
Method Details
-
create
-
fromJson
public static EntityPredicate.Composite fromJson(com.google.gson.JsonObject p_36678_, String p_36679_, DeserializationContext p_36680_) -
fromJsonArray
public static EntityPredicate.Composite[] fromJsonArray(com.google.gson.JsonObject p_36693_, String p_36694_, DeserializationContext p_36695_) -
fromElement
private static EntityPredicate.Composite fromElement(String p_36684_, DeserializationContext p_36685_, @Nullable com.google.gson.JsonElement p_36686_) -
wrap
-
matches
-
toJson
-
toJson
public static com.google.gson.JsonElement toJson(EntityPredicate.Composite[] p_36688_, SerializationContext p_36689_)
-