Package net.minecraft.predicate
Record Class NumberRange.DoubleRange
java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.DoubleRange
- Record Components:
bounds-boundsSqr-
- All Implemented Interfaces:
NumberRange<Double>
- Enclosing interface:
NumberRange<T extends Number & Comparable<T>>
public static record NumberRange.DoubleRange(NumberRange.Bounds<Double> bounds, NumberRange.Bounds<Double> boundsSqr)
extends Record
implements NumberRange<Double>
- Mappings:
Namespace Name named net/minecraft/predicate/NumberRange$DoubleRangeintermediary net/minecraft/class_2096$class_2099official cx$bnamed boundsintermediary comp_4771official fnamed boundsSqrintermediary comp_4772official g
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.NumberRange
NumberRange.AngleRange, NumberRange.Bounds<T extends Number & Comparable<T>>, NumberRange.DoubleRange, NumberRange.IntRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumberRange.DoubleRangeprivate final NumberRange.Bounds<Double> The field for theboundsrecord component.private final NumberRange.Bounds<Double> The field for theboundsSqrrecord component.static final com.mojang.serialization.Codec<NumberRange.DoubleRange> static final PacketCodec<ByteBuf, NumberRange.DoubleRange> Fields inherited from interface net.minecraft.predicate.NumberRange
EXCEPTION_EMPTY, EXCEPTION_SWAPPED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDoubleRange(NumberRange.Bounds<Double> bounds) DoubleRange(NumberRange.Bounds<Double> bounds, NumberRange.Bounds<Double> bounds2) -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberRange.DoubleRangeatLeast(double value) static NumberRange.DoubleRangeatMost(double value) static NumberRange.DoubleRangebetween(double min, double max) bounds()Returns the value of theboundsrecord component.Returns the value of theboundsSqrrecord component.final booleanIndicates whether some other object is "equal to" this one.static NumberRange.DoubleRangeexactly(double value) final inthashCode()Returns a hash code value for this object.static NumberRange.DoubleRangeparse(com.mojang.brigadier.StringReader reader) booleantest(double value) booleantestSqrt(double value) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.predicate.NumberRange
getMax, getMin, isDummy
-
Field Details
-
bounds
The field for theboundsrecord component. -
boundsSqr
The field for theboundsSqrrecord component. -
ANY
- Mappings:
Namespace Name Mixin selector named ANYLnet/minecraft/predicate/NumberRange$DoubleRange;ANY:Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary field_9705Lnet/minecraft/class_2096$class_2099;field_9705:Lnet/minecraft/class_2096$class_2099;official cLcx$b;c:Lcx$b;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/predicate/NumberRange$DoubleRange;CODEC:Lcom/mojang/serialization/Codec;intermediary field_45762Lnet/minecraft/class_2096$class_2099;field_45762:Lcom/mojang/serialization/Codec;official dLcx$b;d:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/predicate/NumberRange$DoubleRange;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_56293Lnet/minecraft/class_2096$class_2099;field_56293:Lnet/minecraft/class_9139;official eLcx$b;e:Laae;
-
-
Constructor Details
-
DoubleRange
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/predicate/NumberRange$DoubleRange;<init>(Lnet/minecraft/predicate/NumberRange$Bounds;)Vintermediary <init>Lnet/minecraft/class_2096$class_2099;<init>(Lnet/minecraft/class_2096$class_11893;)Vofficial <init>Lcx$b;<init>(Lcx$a;)V
-
DoubleRange
-
-
Method Details
-
exactly
- Mappings:
Namespace Name Mixin selector named exactlyLnet/minecraft/predicate/NumberRange$DoubleRange;exactly(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_35284Lnet/minecraft/class_2096$class_2099;method_35284(D)Lnet/minecraft/class_2096$class_2099;official aLcx$b;a(D)Lcx$b;
-
between
- Mappings:
Namespace Name Mixin selector named betweenLnet/minecraft/predicate/NumberRange$DoubleRange;between(DD)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_35285Lnet/minecraft/class_2096$class_2099;method_35285(DD)Lnet/minecraft/class_2096$class_2099;official aLcx$b;a(DD)Lcx$b;
-
atLeast
- Mappings:
Namespace Name Mixin selector named atLeastLnet/minecraft/predicate/NumberRange$DoubleRange;atLeast(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_9050Lnet/minecraft/class_2096$class_2099;method_9050(D)Lnet/minecraft/class_2096$class_2099;official bLcx$b;b(D)Lcx$b;
-
atMost
- Mappings:
Namespace Name Mixin selector named atMostLnet/minecraft/predicate/NumberRange$DoubleRange;atMost(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_35286Lnet/minecraft/class_2096$class_2099;method_35286(D)Lnet/minecraft/class_2096$class_2099;official cLcx$b;c(D)Lcx$b;
-
test
public boolean test(double value) - Mappings:
Namespace Name Mixin selector named testLnet/minecraft/predicate/NumberRange$DoubleRange;test(D)Zintermediary method_9047Lnet/minecraft/class_2096$class_2099;method_9047(D)Zofficial dLcx$b;d(D)Z
-
testSqrt
public boolean testSqrt(double value) - Mappings:
Namespace Name Mixin selector named testSqrtLnet/minecraft/predicate/NumberRange$DoubleRange;testSqrt(D)Zintermediary method_9045Lnet/minecraft/class_2096$class_2099;method_9045(D)Zofficial eLcx$b;e(D)Z
-
parse
public static NumberRange.DoubleRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/predicate/NumberRange$DoubleRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_9049Lnet/minecraft/class_2096$class_2099;method_9049(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2099;official aLcx$b;a(Lcom/mojang/brigadier/StringReader;)Lcx$b;
-
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). -
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceNumberRange<Double>- Returns:
- the value of the
boundsrecord component
-
boundsSqr
Returns the value of theboundsSqrrecord component.- Returns:
- the value of the
boundsSqrrecord component
-