Package net.minecraft.predicate.entity
Class DistancePredicate
java.lang.Object
net.minecraft.predicate.entity.DistancePredicate
public class DistancePredicate extends Object
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description DistancePredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, NumberRange.FloatRange horizontal, NumberRange.FloatRange absolute)
-
Method Summary
Modifier and Type Method Description static DistancePredicate
fromJson(JsonElement json)
static DistancePredicate
horizontal(NumberRange.FloatRange horizontal)
boolean
test(double x0, double y0, double z0, double x1, double y1, double z1)
JsonElement
toJson()
static DistancePredicate
y(NumberRange.FloatRange y)
-
Field Details
-
ANY
-
x
-
y
-
z
-
horizontal
-
absolute
-
-
Constructor Details
-
DistancePredicate
public DistancePredicate(NumberRange.FloatRange x, NumberRange.FloatRange y, NumberRange.FloatRange z, NumberRange.FloatRange horizontal, NumberRange.FloatRange absolute)
-
-
Method Details
-
horizontal
-
y
-
test
public boolean test(double x0, double y0, double z0, double x1, double y1, double z1) -
fromJson
-
toJson
-