public class StarterTrigger extends java.lang.Object implements net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
StarterTrigger.Instance |
Constructor and Description |
---|
StarterTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener) |
StarterTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context)
Deserialize a ICriterionInstance of this trigger from the data in the JSON.
|
net.minecraft.util.ResourceLocation |
getId() |
void |
removeAllListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn) |
void |
removeListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener) |
void |
trigger(net.minecraft.entity.player.EntityPlayerMP player) |
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void addListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener)
addListener
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void removeListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener)
removeListener
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void removeAllListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn)
removeAllListeners
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public StarterTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
deserializeInstance
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void trigger(net.minecraft.entity.player.EntityPlayerMP player)