public class BallCaptureTrigger extends java.lang.Object implements net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
BallCaptureTrigger.Instance |
Constructor and Description |
---|
BallCaptureTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener) |
BallCaptureTrigger.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<BallCaptureTrigger.Instance> listener) |
void |
trigger(net.minecraft.entity.player.EntityPlayerMP player,
EnumPokeballs pokeball) |
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void addListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener)
addListener
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void removeListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener)
removeListener
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void removeAllListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn)
removeAllListeners
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public BallCaptureTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
deserializeInstance
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void trigger(net.minecraft.entity.player.EntityPlayerMP player, EnumPokeballs pokeball)