public class EntityHurtPlayerTrigger extends java.lang.Object implements ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
Modifier and Type | Class and Description |
---|---|
static class |
EntityHurtPlayerTrigger.Instance |
ICriterionTrigger.Listener<T extends ICriterionInstance>
Constructor and Description |
---|
EntityHurtPlayerTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<EntityHurtPlayerTrigger.Instance> listener) |
EntityHurtPlayerTrigger.Instance |
deserializeInstance(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context) |
ResourceLocation |
getId() |
void |
removeAllListeners(PlayerAdvancements playerAdvancementsIn) |
void |
removeListener(PlayerAdvancements playerAdvancementsIn,
ICriterionTrigger.Listener<EntityHurtPlayerTrigger.Instance> listener) |
void |
trigger(EntityPlayerMP player,
DamageSource source,
float amountDealt,
float amountTaken,
boolean wasBlocked) |
public ResourceLocation getId()
getId
in interface ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
public void addListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<EntityHurtPlayerTrigger.Instance> listener)
addListener
in interface ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
public void removeListener(PlayerAdvancements playerAdvancementsIn, ICriterionTrigger.Listener<EntityHurtPlayerTrigger.Instance> listener)
removeListener
in interface ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
public void removeAllListeners(PlayerAdvancements playerAdvancementsIn)
removeAllListeners
in interface ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
public EntityHurtPlayerTrigger.Instance deserializeInstance(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context)
deserializeInstance
in interface ICriterionTrigger<EntityHurtPlayerTrigger.Instance>
public void trigger(EntityPlayerMP player, DamageSource source, float amountDealt, float amountTaken, boolean wasBlocked)