Class DistancePredicate
java.lang.Object
net.minecraft.advancements.criterion.DistancePredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinMaxBounds.FloatBound
static final DistancePredicate
private final MinMaxBounds.FloatBound
private final MinMaxBounds.FloatBound
private final MinMaxBounds.FloatBound
private final MinMaxBounds.FloatBound
-
Constructor Summary
ConstructorDescriptionDistancePredicate
(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
Modifier and TypeMethodDescriptionstatic 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
static DistancePredicate
vertical
(MinMaxBounds.FloatBound p_203993_0_)
-
Field Details
-
ANY
-
x
-
y
-
z
-
horizontal
-
absolute
-
-
Constructor Details
-
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 Details
-
horizontal
-
vertical
-
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
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-