public static class EffectsChangedCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private EntityEffectPredicate |
effects |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
EntityEffectPredicate effects) |
Modifier and Type | Method and Description |
---|---|
static EffectsChangedCriterion.Conditions |
create(EntityEffectPredicate effects) |
boolean |
matches(ServerPlayerEntity player) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final EntityEffectPredicate effects
public Conditions(EntityPredicate.Extended player, EntityEffectPredicate effects)
public static EffectsChangedCriterion.Conditions create(EntityEffectPredicate effects)
public boolean matches(ServerPlayerEntity player)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions