public class RecipeUnlockedCriterion extends AbstractCriterion<RecipeUnlockedCriterion.Conditions>
Modifier and Type | Class and Description |
---|---|
static class |
RecipeUnlockedCriterion.Conditions |
Criterion.ConditionsContainer<T extends CriterionConditions>
Modifier and Type | Field and Description |
---|---|
private static Identifier |
ID |
Constructor and Description |
---|
RecipeUnlockedCriterion() |
Modifier and Type | Method and Description |
---|---|
RecipeUnlockedCriterion.Conditions |
conditionsFromJson(JsonObject jsonObject,
EntityPredicate.Extended extended,
AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer) |
static RecipeUnlockedCriterion.Conditions |
create(Identifier id) |
Identifier |
getId() |
void |
trigger(ServerPlayerEntity player,
Recipe<?> recipe) |
beginTrackingCondition, conditionsFromJson, endTracking, endTrackingCondition, test
private static final Identifier ID
public Identifier getId()
public RecipeUnlockedCriterion.Conditions conditionsFromJson(JsonObject jsonObject, EntityPredicate.Extended extended, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
conditionsFromJson
in class AbstractCriterion<RecipeUnlockedCriterion.Conditions>
public void trigger(ServerPlayerEntity player, Recipe<?> recipe)
public static RecipeUnlockedCriterion.Conditions create(Identifier id)