Class ModItemObtainedTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<ModItemObtainedTrigger.Instance>
org.cyclops.cyclopscore.advancement.criterion.ModItemObtainedTrigger
- All Implemented Interfaces:
net.minecraft.advancements.CriterionTrigger<ModItemObtainedTrigger.Instance>
public class ModItemObtainedTrigger
extends net.minecraft.advancements.critereon.SimpleCriterionTrigger<ModItemObtainedTrigger.Instance>
Trigger for when an item of a given mod is obtained.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
net.minecraft.advancements.CriterionTrigger.Listener<T extends net.minecraft.advancements.CriterionTriggerInstance>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject json, net.minecraft.advancements.critereon.ContextAwarePredicate entityPredicate, net.minecraft.advancements.critereon.DeserializationContext conditionsParser) net.minecraft.resources.ResourceLocation
getId()
void
onCrafted
(net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent event) void
onPickup
(net.minecraftforge.event.entity.player.EntityItemPickupEvent event) void
onSmelted
(net.minecraftforge.event.entity.player.PlayerEvent.ItemSmeltedEvent event) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Constructor Details
-
ModItemObtainedTrigger
public ModItemObtainedTrigger()
-
-
Method Details
-
getId
public net.minecraft.resources.ResourceLocation getId() -
createInstance
public ModItemObtainedTrigger.Instance createInstance(com.google.gson.JsonObject json, net.minecraft.advancements.critereon.ContextAwarePredicate entityPredicate, net.minecraft.advancements.critereon.DeserializationContext conditionsParser) - Specified by:
createInstance
in classnet.minecraft.advancements.critereon.SimpleCriterionTrigger<ModItemObtainedTrigger.Instance>
-
onPickup
public void onPickup(net.minecraftforge.event.entity.player.EntityItemPickupEvent event) -
onCrafted
public void onCrafted(net.minecraftforge.event.entity.player.PlayerEvent.ItemCraftedEvent event) -
onSmelted
public void onSmelted(net.minecraftforge.event.entity.player.PlayerEvent.ItemSmeltedEvent event)
-