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