Class RecipeUnlockedTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
net.minecraft.advancements.critereon.RecipeUnlockedTrigger
- All Implemented Interfaces:
CriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
public class RecipeUnlockedTrigger
extends SimpleCriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_286387_, ContextAwarePredicate p_286739_, DeserializationContext p_286649_) getId()
void
trigger
(ServerPlayer p_63719_, Recipe<?> p_63720_) unlocked
(ResourceLocation p_63729_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
RecipeUnlockedTrigger
public RecipeUnlockedTrigger()
-
-
Method Details
-
getId
-
createInstance
public RecipeUnlockedTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286387_, ContextAwarePredicate p_286739_, DeserializationContext p_286649_) - Specified by:
createInstance
in classSimpleCriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
-
trigger
-
unlocked
-