public static class RecipeUnlockedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private Identifier |
recipe |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
Identifier recipe) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Recipe<?> recipe) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final Identifier recipe
public Conditions(EntityPredicate.Extended player, Identifier recipe)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions
public boolean matches(Recipe<?> recipe)