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