Class RecipeUnlockedTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.RecipeUnlockedTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- RecipeUnlockedTrigger
public static class RecipeUnlockedTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
recipe
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231865_1_, ResourceLocation p_i231865_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(IRecipe<?> p_193215_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
recipe
private final ResourceLocation recipe
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231865_1_, ResourceLocation p_i231865_2_)
-
-
Method Detail
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
matches
public boolean matches(IRecipe<?> p_193215_1_)
-
-