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