public class UsedTotemTrigger extends java.lang.Object implements ICriterionTrigger<UsedTotemTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
UsedTotemTrigger.Instance |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Constructor and Description |
---|
UsedTotemTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<UsedTotemTrigger.Instance> listener) |
UsedTotemTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getId() |
void |
removeAllListeners(PlayerAdvancements playerAdvancementsIn) |
void |
removeListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<UsedTotemTrigger.Instance> listener) |
void |
trigger(EntityPlayerMP player,
ItemStack item) |
public ResourceLocation getId()
getId
in interface ICriterionTrigger<UsedTotemTrigger.Instance>
public void addListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<UsedTotemTrigger.Instance> listener)
addListener
in interface ICriterionTrigger<UsedTotemTrigger.Instance>
public void removeListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<UsedTotemTrigger.Instance> listener)
removeListener
in interface ICriterionTrigger<UsedTotemTrigger.Instance>
public void removeAllListeners(PlayerAdvancements playerAdvancementsIn)
removeAllListeners
in interface ICriterionTrigger<UsedTotemTrigger.Instance>
public UsedTotemTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
deserializeInstance
in interface ICriterionTrigger<UsedTotemTrigger.Instance>
public void trigger(EntityPlayerMP player, ItemStack item)