public class DistancePredicate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private MinMaxBounds.FloatBound |
absolute |
static DistancePredicate |
ANY |
private MinMaxBounds.FloatBound |
horizontal |
private MinMaxBounds.FloatBound |
x |
private MinMaxBounds.FloatBound |
y |
private MinMaxBounds.FloatBound |
z |
Constructor and Description |
---|
DistancePredicate(MinMaxBounds.FloatBound p_i49724_1_,
MinMaxBounds.FloatBound p_i49724_2_,
MinMaxBounds.FloatBound p_i49724_3_,
MinMaxBounds.FloatBound p_i49724_4_,
MinMaxBounds.FloatBound p_i49724_5_) |
Modifier and Type | Method and Description |
---|---|
static DistancePredicate |
deserialize(com.google.gson.JsonElement element) |
static DistancePredicate |
forHorizontal(MinMaxBounds.FloatBound p_203995_0_) |
static DistancePredicate |
forVertical(MinMaxBounds.FloatBound p_203993_0_) |
com.google.gson.JsonElement |
serialize() |
boolean |
test(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
public static final DistancePredicate ANY
private final MinMaxBounds.FloatBound x
private final MinMaxBounds.FloatBound y
private final MinMaxBounds.FloatBound z
private final MinMaxBounds.FloatBound horizontal
private final MinMaxBounds.FloatBound absolute
public DistancePredicate(MinMaxBounds.FloatBound p_i49724_1_, MinMaxBounds.FloatBound p_i49724_2_, MinMaxBounds.FloatBound p_i49724_3_, MinMaxBounds.FloatBound p_i49724_4_, MinMaxBounds.FloatBound p_i49724_5_)
public static DistancePredicate forHorizontal(MinMaxBounds.FloatBound p_203995_0_)
public static DistancePredicate forVertical(MinMaxBounds.FloatBound p_203993_0_)
public boolean test(double x1, double y1, double z1, double x2, double y2, double z2)
public static DistancePredicate deserialize(@Nullable com.google.gson.JsonElement element)
public com.google.gson.JsonElement serialize()