public static class EntityHurtPlayerCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private DamagePredicate |
damage |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
DamagePredicate damage) |
Modifier and Type | Method and Description |
---|---|
static EntityHurtPlayerCriterion.Conditions |
create(DamagePredicate.Builder damageBuilder) |
boolean |
matches(ServerPlayerEntity player,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final DamagePredicate damage
public Conditions(EntityPredicate.Extended player, DamagePredicate damage)
public static EntityHurtPlayerCriterion.Conditions create(DamagePredicate.Builder damageBuilder)
public boolean matches(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions