public static class ConstructBeaconCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private NumberRange.IntRange |
level |
Constructor and Description |
---|
Conditions(EntityPredicate.Extended player,
NumberRange.IntRange level) |
Modifier and Type | Method and Description |
---|---|
static ConstructBeaconCriterion.Conditions |
level(NumberRange.IntRange level) |
boolean |
matches(BeaconBlockEntity beacon) |
JsonObject |
toJson(AdvancementEntityPredicateSerializer predicateSerializer) |
getId, getPlayerPredicate, toString
private final NumberRange.IntRange level
public Conditions(EntityPredicate.Extended player, NumberRange.IntRange level)
public static ConstructBeaconCriterion.Conditions level(NumberRange.IntRange level)
public boolean matches(BeaconBlockEntity beacon)
public JsonObject toJson(AdvancementEntityPredicateSerializer predicateSerializer)
toJson
in interface CriterionConditions
toJson
in class AbstractCriterionConditions