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