public static class PlayerHurtEntityCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private DamagePredicate |
damage |
private EntityPredicate |
entity |
Constructor and Description |
---|
Conditions(DamagePredicate damage,
EntityPredicate entity) |
Modifier and Type | Method and Description |
---|---|
static PlayerHurtEntityCriterion.Conditions |
create(DamagePredicate.Builder builder) |
boolean |
matches(ServerPlayerEntity player,
Entity entity,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
JsonElement |
toJson() |
getId, toString
private final DamagePredicate damage
private final EntityPredicate entity
public Conditions(DamagePredicate damage, EntityPredicate entity)
public static PlayerHurtEntityCriterion.Conditions create(DamagePredicate.Builder builder)
public boolean matches(ServerPlayerEntity player, Entity entity, DamageSource source, float dealt, float taken, boolean blocked)
public JsonElement toJson()