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 |
addPlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn,
net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener) |
BallCaptureTrigger.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<BallCaptureTrigger.Instance> listener) |
void |
removePlayerListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn) |
void |
trigger(net.minecraft.entity.player.ServerPlayerEntity player,
PokeBall pokeball) |
public net.minecraft.util.ResourceLocation getId()
getId
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void addPlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener)
addPlayerListener
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void removePlayerListener(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn, net.minecraft.advancements.ICriterionTrigger.Listener<BallCaptureTrigger.Instance> listener)
removePlayerListener
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void removePlayerListeners(net.minecraft.advancements.PlayerAdvancements playerAdvancementsIn)
removePlayerListeners
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public BallCaptureTrigger.Instance createInstance(com.google.gson.JsonObject json, net.minecraft.loot.ConditionArrayParser conditions)
createInstance
in interface net.minecraft.advancements.ICriterionTrigger<BallCaptureTrigger.Instance>
public void trigger(net.minecraft.entity.player.ServerPlayerEntity player, PokeBall pokeball)