public static class EntityPredicate.Extended extends Object
Modifier and Type | Field and Description |
---|---|
private Predicate<LootContext> |
combinedCondition |
private LootCondition[] |
conditions |
static EntityPredicate.Extended |
EMPTY |
Modifier | Constructor and Description |
---|---|
private |
Extended(LootCondition[] conditions) |
public static final EntityPredicate.Extended EMPTY
private final LootCondition[] conditions
private final Predicate<LootContext> combinedCondition
private Extended(LootCondition[] conditions)
public static EntityPredicate.Extended create(LootCondition[] conditions)
public static EntityPredicate.Extended getInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
public static EntityPredicate.Extended[] requireInJson(JsonObject root, String key, AdvancementEntityPredicateDeserializer predicateDeserializer)
private static EntityPredicate.Extended fromJson(String key, AdvancementEntityPredicateDeserializer predicateDeserializer, @Nullable JsonElement json)
public static EntityPredicate.Extended ofLegacy(EntityPredicate predicate)
public boolean test(LootContext context)
public JsonElement toJson(AdvancementEntityPredicateSerializer predicateSerializer)
public static JsonElement toPredicatesJsonArray(EntityPredicate.Extended[] predicates, AdvancementEntityPredicateSerializer predicateSerializer)