Class RecipeUnlockedTrigger
java.lang.Object
net.minecraft.advancements.criterion.SimpleCriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
net.minecraft.advancements.criterion.RecipeUnlockedTrigger
- All Implemented Interfaces:
CriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
public class RecipeUnlockedTrigger
extends SimpleCriterionTrigger<RecipeUnlockedTrigger.TriggerInstance>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class SimpleCriterionTrigger
SimpleCriterionTrigger.SimpleInstanceNested classes/interfaces inherited from interface CriterionTrigger
CriterionTrigger.Listener<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<RecipeUnlockedTrigger.TriggerInstance> codec()voidtrigger(ServerPlayer player, RecipeHolder<?> recipe) unlocked(ResourceKey<Recipe<?>> recipe) Methods inherited from class SimpleCriterionTrigger
addPlayerListener, removePlayerListener, removePlayerListeners, triggerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CriterionTrigger
createCriterion
-
Constructor Details
-
RecipeUnlockedTrigger
public RecipeUnlockedTrigger()
-
-
Method Details
-
codec
-
trigger
-
unlocked
public static Criterion<RecipeUnlockedTrigger.TriggerInstance> unlocked(ResourceKey<Recipe<?>> recipe)
-