public static class EntityHurtPlayerCriterion.Conditions extends AbstractCriterionConditions
| Modifier and Type | Field and Description |
|---|---|
private DamagePredicate |
damage |
| Constructor and Description |
|---|
Conditions(EntityPredicate.class_5258 class_5258,
DamagePredicate damagePredicate) |
| 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) |
JsonObject |
toJson(class_5267 class_5267) |
getId, method_27790, toStringprivate final DamagePredicate damage
public Conditions(EntityPredicate.class_5258 class_5258, DamagePredicate damagePredicate)
public static EntityHurtPlayerCriterion.Conditions create(DamagePredicate.Builder builder)
public boolean matches(ServerPlayerEntity player, DamageSource source, float dealt, float taken, boolean blocked)
public JsonObject toJson(class_5267 class_5267)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditions