Class DistancePredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.DistancePredicate
-
public class DistancePredicate extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DistancePredicate
fromJson(com.google.gson.JsonElement p_193421_0_)
static DistancePredicate
horizontal(MinMaxBounds.FloatBound p_203995_0_)
boolean
matches(double p_193422_1_, double p_193422_3_, double p_193422_5_, double p_193422_7_, double p_193422_9_, double p_193422_11_)
com.google.gson.JsonElement
serializeToJson()
static DistancePredicate
vertical(MinMaxBounds.FloatBound p_203993_0_)
-
-
-
Field Detail
-
ANY
public static final DistancePredicate ANY
-
x
private final MinMaxBounds.FloatBound x
-
y
private final MinMaxBounds.FloatBound y
-
z
private final MinMaxBounds.FloatBound z
-
horizontal
private final MinMaxBounds.FloatBound horizontal
-
absolute
private final MinMaxBounds.FloatBound absolute
-
-
Constructor Detail
-
DistancePredicate
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_)
-
-
Method Detail
-
horizontal
public static DistancePredicate horizontal(MinMaxBounds.FloatBound p_203995_0_)
-
vertical
public static DistancePredicate vertical(MinMaxBounds.FloatBound p_203993_0_)
-
matches
public boolean matches(double p_193422_1_, double p_193422_3_, double p_193422_5_, double p_193422_7_, double p_193422_9_, double p_193422_11_)
-
fromJson
public static DistancePredicate fromJson(@Nullable com.google.gson.JsonElement p_193421_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-