Class EntityPredicate.AndPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityPredicate.AndPredicate
-
- Enclosing class:
- EntityPredicate
public static class EntityPredicate.AndPredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static EntityPredicate.AndPredicate
ANY
private java.util.function.Predicate<LootContext>
compositePredicates
private ILootCondition[]
conditions
-
Constructor Summary
Constructors Modifier Constructor Description private
AndPredicate(ILootCondition[] p_i231580_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityPredicate.AndPredicate
create(ILootCondition... p_234591_0_)
private static EntityPredicate.AndPredicate
fromElement(java.lang.String p_234589_0_, ConditionArrayParser p_234589_1_, com.google.gson.JsonElement p_234589_2_)
static EntityPredicate.AndPredicate
fromJson(com.google.gson.JsonObject p_234587_0_, java.lang.String p_234587_1_, ConditionArrayParser p_234587_2_)
static EntityPredicate.AndPredicate[]
fromJsonArray(com.google.gson.JsonObject p_234592_0_, java.lang.String p_234592_1_, ConditionArrayParser p_234592_2_)
boolean
matches(LootContext p_234588_1_)
static com.google.gson.JsonElement
toJson(EntityPredicate.AndPredicate[] p_234590_0_, ConditionArraySerializer p_234590_1_)
com.google.gson.JsonElement
toJson(ConditionArraySerializer p_234586_1_)
static EntityPredicate.AndPredicate
wrap(EntityPredicate p_234585_0_)
-
-
-
Field Detail
-
ANY
public static final EntityPredicate.AndPredicate ANY
-
conditions
private final ILootCondition[] conditions
-
compositePredicates
private final java.util.function.Predicate<LootContext> compositePredicates
-
-
Constructor Detail
-
AndPredicate
private AndPredicate(ILootCondition[] p_i231580_1_)
-
-
Method Detail
-
create
public static EntityPredicate.AndPredicate create(ILootCondition... p_234591_0_)
-
fromJson
public static EntityPredicate.AndPredicate fromJson(com.google.gson.JsonObject p_234587_0_, java.lang.String p_234587_1_, ConditionArrayParser p_234587_2_)
-
fromJsonArray
public static EntityPredicate.AndPredicate[] fromJsonArray(com.google.gson.JsonObject p_234592_0_, java.lang.String p_234592_1_, ConditionArrayParser p_234592_2_)
-
fromElement
private static EntityPredicate.AndPredicate fromElement(java.lang.String p_234589_0_, ConditionArrayParser p_234589_1_, @Nullable com.google.gson.JsonElement p_234589_2_)
-
wrap
public static EntityPredicate.AndPredicate wrap(EntityPredicate p_234585_0_)
-
matches
public boolean matches(LootContext p_234588_1_)
-
toJson
public com.google.gson.JsonElement toJson(ConditionArraySerializer p_234586_1_)
-
toJson
public static com.google.gson.JsonElement toJson(EntityPredicate.AndPredicate[] p_234590_0_, ConditionArraySerializer p_234590_1_)
-
-