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 |
addPlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener) |
StarterTrigger.Instance |
createInstance(com.google.gson.JsonObject json,
net.minecraft.loot.ConditionArrayParser conditions)
Deserialize a ICriterionInstance of this trigger from the data in the JSON.
|
net.minecraft.util.ResourceLocation |
getId() |
void |
removePlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener) |
void |
removePlayerListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn) |
void |
trigger(net.minecraft.entity.player.ServerPlayerEntity player) |
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void addPlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener)
addPlayerListener
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void removePlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<StarterTrigger.Instance> listener)
removePlayerListener
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void removePlayerListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn)
removePlayerListeners
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public StarterTrigger.Instance createInstance(com.google.gson.JsonObject json, net.minecraft.loot.ConditionArrayParser conditions)
createInstance
in interface net.minecraft.advancements.ICriterionTrigger<StarterTrigger.Instance>
public void trigger(net.minecraft.entity.player.ServerPlayerEntity player)