public class DistancePredicate extends Object
Modifier and Type | Field and Description |
---|---|
private NumberRange.FloatRange |
absolute |
static DistancePredicate |
ANY |
private NumberRange.FloatRange |
horizontal |
private NumberRange.FloatRange |
x |
private NumberRange.FloatRange |
y |
private NumberRange.FloatRange |
z |
Constructor and Description |
---|
DistancePredicate(NumberRange.FloatRange x,
NumberRange.FloatRange y,
NumberRange.FloatRange z,
NumberRange.FloatRange horizontal,
NumberRange.FloatRange absolute) |
Modifier and Type | Method and Description |
---|---|
static DistancePredicate |
deserialize(JsonElement el) |
static DistancePredicate |
horizontal(NumberRange.FloatRange horizontal) |
boolean |
test(double double2,
double double3,
double double4,
double double5,
double double6,
double double7) |
JsonElement |
toJson() |
static DistancePredicate |
y(NumberRange.FloatRange y) |
public static final DistancePredicate ANY
private final NumberRange.FloatRange x
private final NumberRange.FloatRange y
private final NumberRange.FloatRange z
private final NumberRange.FloatRange horizontal
private final NumberRange.FloatRange absolute
public DistancePredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, NumberRange.FloatRange horizontal, NumberRange.FloatRange absolute)
public static DistancePredicate horizontal(NumberRange.FloatRange horizontal)
public static DistancePredicate y(NumberRange.FloatRange y)
public boolean test(double double2, double double3, double double4, double double5, double double6, double double7)
public static DistancePredicate deserialize(@Nullable JsonElement el)
public JsonElement toJson()