Package net.minecraft.predicate.entity
Record Class LocationPredicate.PositionRange
java.lang.Object
java.lang.Record
net.minecraft.predicate.entity.LocationPredicate.PositionRange
- Record Components:
- x-
- y-
- z-
- Enclosing class:
- LocationPredicate
private static record LocationPredicate.PositionRange(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/predicate/entity/LocationPredicate$PositionRange- intermediary - net/minecraft/class_2090$class_8747- official - di$b- named - x- intermediary - comp_1802- official - b- named - y- intermediary - comp_1803- official - c- named - z- intermediary - comp_1804- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<LocationPredicate.PositionRange> 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 SummaryConstructorsModifierConstructorDescriptionprivatePositionRange(NumberRange.DoubleRange doubleRange, NumberRange.DoubleRange doubleRange2, NumberRange.DoubleRange doubleRange3) 
- 
Method SummaryModifier and TypeMethodDescription(package private) static Optional<LocationPredicate.PositionRange> final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantest(double x, double y, double z) final StringtoString()Returns a string representation of this record class.x()Returns the value of thexrecord component.y()Returns the value of theyrecord component.z()Returns the value of thezrecord component.
- 
Field Details- 
xThe field for thexrecord component.
- 
yThe field for theyrecord component.
- 
zThe field for thezrecord component.
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45761- Lnet/minecraft/class_2090$class_8747;field_45761:Lcom/mojang/serialization/Codec;- official - a- Ldi$b;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
PositionRangeprivate PositionRange(NumberRange.DoubleRange doubleRange, NumberRange.DoubleRange doubleRange2, NumberRange.DoubleRange doubleRange3) 
 
- 
- 
Method Details- 
createstatic Optional<LocationPredicate.PositionRange> create(NumberRange.DoubleRange x, NumberRange.DoubleRange y, NumberRange.DoubleRange z) - Mappings:
- Namespace - Name - Mixin selector - named - create- Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;create(Lnet/minecraft/predicate/NumberRange$DoubleRange;Lnet/minecraft/predicate/NumberRange$DoubleRange;Lnet/minecraft/predicate/NumberRange$DoubleRange;)Ljava/util/Optional;- intermediary - method_53185- Lnet/minecraft/class_2090$class_8747;method_53185(Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2096$class_2099;Lnet/minecraft/class_2096$class_2099;)Ljava/util/Optional;- official - a- Ldi$b;a(Ldk$c;Ldk$c;Ldk$c;)Ljava/util/Optional;
 
- 
testpublic boolean test(double x, double y, double z) - Mappings:
- Namespace - Name - Mixin selector - named - test- Lnet/minecraft/predicate/entity/LocationPredicate$PositionRange;test(DDD)Z- intermediary - method_53184- Lnet/minecraft/class_2090$class_8747;method_53184(DDD)Z- official - a- Ldi$b;a(DDD)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
 
 
-