public static class PlayerHurtEntityTrigger.Instance extends AbstractCriterionInstance
Modifier and Type | Field and Description |
---|---|
private DamagePredicate |
damage |
private EntityPredicate |
entity |
Constructor and Description |
---|
Instance(DamagePredicate damage,
EntityPredicate entity) |
Modifier and Type | Method and Description |
---|---|
boolean |
test(EntityPlayerMP player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
getId, toString
private final DamagePredicate damage
private final EntityPredicate entity
public Instance(DamagePredicate damage, EntityPredicate entity)
public boolean test(EntityPlayerMP player, Entity entity, DamageSource source, float dealt, float taken, boolean blocked)