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 - bo- 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 SummaryFieldsModifier and TypeFieldDescriptionprivate final NumberRange.DoubleRangeThe field for theabsoluterecord component.static final com.mojang.serialization.Codec<DistancePredicate> private final NumberRange.DoubleRangeThe field for thehorizontalrecord component.private final NumberRange.DoubleRangeThe field for thexrecord component.private final NumberRange.DoubleRangeThe field for theyrecord component.private final NumberRange.DoubleRangeThe field for thezrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionDistancePredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute) Creates an instance of aDistancePredicaterecord class.
- 
Method SummaryModifier and TypeMethodDescriptionabsolute()Returns the value of theabsoluterecord component.static DistancePredicateabsolute(NumberRange.DoubleRange absolute) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehorizontalrecord component.static DistancePredicatehorizontal(NumberRange.DoubleRange horizontal) booleantest(double x0, double y0, double z0, double x1, double y1, double z1) final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.static DistancePredicatez()Returns the value of thezrecord component.
- 
Field Details- 
xThe field for thexrecord component.
- 
yThe field for theyrecord component.
- 
zThe field for thezrecord component.
- 
horizontalThe field for thehorizontalrecord component.
- 
absoluteThe field for theabsoluterecord 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- Lbo;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
DistancePredicatepublic DistancePredicate(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z, NumberRange.DoubleRange horizontal, NumberRange.DoubleRange absolute) Creates an instance of aDistancePredicaterecord class.- Parameters:
- x- the value for the- xrecord component
- y- the value for the- yrecord component
- z- the value for the- zrecord component
- horizontal- the value for the- horizontalrecord component
- absolute- the value for the- absoluterecord 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- Lbo;a(Ldk$c;)Lbo;
 
- 
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- Lbo;b(Ldk$c;)Lbo;
 
- 
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- Lbo;c(Ldk$c;)Lbo;
 
- 
testpublic 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- Lbo;a(DDDDDD)Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
xReturns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
yReturns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
zReturns the value of thezrecord component.- Returns:
- the value of the zrecord component
 
- 
horizontalReturns the value of thehorizontalrecord component.- Returns:
- the value of the horizontalrecord component
 
- 
absoluteReturns the value of theabsoluterecord component.- Returns:
- the value of the absoluterecord component
 
 
-