public static class PlayerHurtEntityCriterion.Conditions extends AbstractCriterionConditions
| Modifier and Type | Field and Description |
|---|---|
private DamagePredicate |
damage |
private EntityPredicate.class_5258 |
entity |
| Constructor and Description |
|---|
Conditions(EntityPredicate.class_5258 class_5258,
DamagePredicate damagePredicate,
EntityPredicate.class_5258 class_52582) |
| Modifier and Type | Method and Description |
|---|---|
static PlayerHurtEntityCriterion.Conditions |
create(DamagePredicate.Builder builder) |
boolean |
matches(ServerPlayerEntity serverPlayerEntity,
LootContext lootContext,
DamageSource source,
float dealt,
float taken,
boolean blocked) |
JsonObject |
toJson(class_5267 class_5267) |
getId, method_27790, toStringprivate final DamagePredicate damage
private final EntityPredicate.class_5258 entity
public Conditions(EntityPredicate.class_5258 class_5258, DamagePredicate damagePredicate, EntityPredicate.class_5258 class_52582)
public static PlayerHurtEntityCriterion.Conditions create(DamagePredicate.Builder builder)
public boolean matches(ServerPlayerEntity serverPlayerEntity, LootContext lootContext, DamageSource source, float dealt, float taken, boolean blocked)
public JsonObject toJson(class_5267 class_5267)
toJson in interface CriterionConditionstoJson in class AbstractCriterionConditions