public static class LevitationCriterion.Conditions extends AbstractCriterionConditions
Modifier and Type | Field and Description |
---|---|
private DistancePredicate |
distance |
private NumberRange.IntRange |
duration |
Constructor and Description |
---|
Conditions(DistancePredicate distance,
NumberRange.IntRange duration) |
Modifier and Type | Method and Description |
---|---|
static LevitationCriterion.Conditions |
create(DistancePredicate distance) |
boolean |
matches(ServerPlayerEntity player,
Vec3d startPos,
int duration) |
JsonElement |
toJson() |
getId, toString
private final DistancePredicate distance
private final NumberRange.IntRange duration
public Conditions(DistancePredicate distance, NumberRange.IntRange duration)
public static LevitationCriterion.Conditions create(DistancePredicate distance)
public boolean matches(ServerPlayerEntity player, Vec3d startPos, int duration)
public JsonElement toJson()