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