public class UsedTotemTrigger extends java.lang.Object implements ICriterionTrigger<UsedTotemTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
UsedTotemTrigger.Instance |
(package private) static class |
UsedTotemTrigger.Listeners |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Modifier and Type | Field and Description |
---|---|
private static ResourceLocation |
ID |
private java.util.Map<PlayerAdvancements,UsedTotemTrigger.Listeners> |
listeners |
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) |
private static final ResourceLocation ID
private final java.util.Map<PlayerAdvancements,UsedTotemTrigger.Listeners> listeners
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)