Package net.minecraft.predicate.entity
Record Class DistancePredicate
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.DistancePredicate
- Record Components:
x
-y
-z
-horizontal
-absolute
-
public record DistancePredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute)
extends Record
- Mappings:
Namespace Name named net/minecraft/predicate/entity/DistancePredicate
intermediary net/minecraft/class_2025
official bm
named x
intermediary comp_1743
official b
named y
intermediary comp_1744
official c
named z
intermediary comp_1745
official d
named horizontal
intermediary comp_1746
official e
named absolute
intermediary comp_1747
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NumberRange.DoubleRange
The field for theabsolute
record component.static final com.mojang.serialization.Codec
<DistancePredicate> private final NumberRange.DoubleRange
The field for thehorizontal
record component.private final NumberRange.DoubleRange
The field for thex
record component.private final NumberRange.DoubleRange
The field for they
record component.private final NumberRange.DoubleRange
The field for thez
record component. -
Constructor Summary
ConstructorDescriptionDistancePredicate
(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute) Creates an instance of aDistancePredicate
record class. -
Method Summary
Modifier and TypeMethodDescriptionabsolute()
Returns the value of theabsolute
record component.static DistancePredicate
absolute
(NumberRange.DoubleRange absolute) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thehorizontal
record component.static DistancePredicate
horizontal
(NumberRange.DoubleRange horizontal) boolean
test
(double x0, double y0, double z0, double x1, double y1, double z1) final String
toString()
Returns a string representation of this record class.x()
Returns the value of thex
record component.y()
Returns the value of they
record component.static DistancePredicate
z()
Returns the value of thez
record component.
-
Field Details
-
x
The field for thex
record component. -
y
The field for they
record component. -
z
The field for thez
record component. -
horizontal
The field for thehorizontal
record component. -
absolute
The field for theabsolute
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/entity/DistancePredicate;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45728
Lnet/minecraft/class_2025;field_45728:Lcom/mojang/serialization/Codec;
official a
Lbm;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DistancePredicate
public DistancePredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute) Creates an instance of aDistancePredicate
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentz
- the value for thez
record componenthorizontal
- the value for thehorizontal
record componentabsolute
- the value for theabsolute
record component
-
-
Method Details
-
horizontal
- Mappings:
Namespace Name Mixin selector named horizontal
Lnet/minecraft/predicate/entity/DistancePredicate;horizontal(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
intermediary method_8860
Lnet/minecraft/class_2025;method_8860(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
official a
Lbm;a(Ldh$c;)Lbm;
-
y
- Mappings:
Namespace Name Mixin selector named y
Lnet/minecraft/predicate/entity/DistancePredicate;y(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
intermediary method_8856
Lnet/minecraft/class_2025;method_8856(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
official b
Lbm;b(Ldh$c;)Lbm;
-
absolute
- Mappings:
Namespace Name Mixin selector named absolute
Lnet/minecraft/predicate/entity/DistancePredicate;absolute(Lnet/minecraft/predicate/NumberRange$DoubleRange;)Lnet/minecraft/predicate/entity/DistancePredicate;
intermediary method_37223
Lnet/minecraft/class_2025;method_37223(Lnet/minecraft/class_2096$class_2099;)Lnet/minecraft/class_2025;
official c
Lbm;c(Ldh$c;)Lbm;
-
test
public boolean test(double x0, double y0, double z0, double x1, double y1, double z1) - Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/entity/DistancePredicate;test(DDDDDD)Z
intermediary method_8859
Lnet/minecraft/class_2025;method_8859(DDDDDD)Z
official a
Lbm;a(DDDDDD)Z
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
x
Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
z
Returns the value of thez
record component.- Returns:
- the value of the
z
record component
-
horizontal
Returns the value of thehorizontal
record component.- Returns:
- the value of the
horizontal
record component
-
absolute
Returns the value of theabsolute
record component.- Returns:
- the value of the
absolute
record component
-