Package net.minecraft.predicate
Record Class NumberRange.DoubleRange
java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.DoubleRange
- Record Components:
min-max-squaredMin-squaredMax-
- All Implemented Interfaces:
NumberRange<Double>
- Enclosing interface:
NumberRange<T extends Number>
public static record NumberRange.DoubleRange(Optional<Double> min, Optional<Double> max, Optional<Double> squaredMin, Optional<Double> squaredMax)
extends Record
implements NumberRange<Double>
- Mappings:
Namespace Name named net/minecraft/predicate/NumberRange$DoubleRangeintermediary net/minecraft/class_2096$class_2099official dh$cnamed minintermediary comp_1805official enamed maxintermediary comp_1806official fnamed squaredMinintermediary comp_1807official gnamed squaredMaxintermediary comp_1808official h
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.NumberRange
NumberRange.CommandFactory<T extends Number,R extends NumberRange<T>>, NumberRange.DoubleRange, NumberRange.Factory<T extends Number, R extends NumberRange<T>>, NumberRange.IntRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumberRange.DoubleRangestatic final com.mojang.serialization.Codec<NumberRange.DoubleRange> The field for themaxrecord component.The field for theminrecord component.The field for thesquaredMaxrecord component.The field for thesquaredMinrecord component.Fields inherited from interface net.minecraft.predicate.NumberRange
EXCEPTION_EMPTY, EXCEPTION_SWAPPED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberRange.DoubleRangeatLeast(double value) static NumberRange.DoubleRangeatMost(double value) static NumberRange.DoubleRangebetween(double min, double max) private static NumberRange.DoubleRangefinal 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.max()Returns the value of themaxrecord component.min()Returns the value of theminrecord component.static NumberRange.DoubleRangeparse(com.mojang.brigadier.StringReader reader) static NumberRange.DoubleRangeReturns the value of thesquaredMaxrecord component.Returns the value of thesquaredMinrecord component.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
getConstantValue, isDummy
-
Field Details
-
min
The field for theminrecord component. -
max
The field for themaxrecord component. -
squaredMin
The field for thesquaredMinrecord component. -
squaredMax
The field for thesquaredMaxrecord 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 cLdh$c;c:Ldh$c;
-
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 dLdh$c;d:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
DoubleRange
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/predicate/NumberRange$DoubleRange;<init>(Ljava/util/Optional;Ljava/util/Optional;)Vintermediary <init>Lnet/minecraft/class_2096$class_2099;<init>(Ljava/util/Optional;Ljava/util/Optional;)Vofficial <init>Ldh$c;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
-
DoubleRange
-
-
Method Details
-
create
private static NumberRange.DoubleRange create(com.mojang.brigadier.StringReader reader, Optional<Double> min, Optional<Double> max) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/predicate/NumberRange$DoubleRange;create(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_9046Lnet/minecraft/class_2096$class_2099;method_9046(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_2096$class_2099;official aLdh$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Ldh$c;
-
square
- Mappings:
Namespace Name Mixin selector named squareLnet/minecraft/predicate/NumberRange$DoubleRange;square(Ljava/util/Optional;)Ljava/util/Optional;intermediary method_9044Lnet/minecraft/class_2096$class_2099;method_9044(Ljava/util/Optional;)Ljava/util/Optional;official aLdh$c;a(Ljava/util/Optional;)Ljava/util/Optional;
-
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 aLdh$c;a(D)Ldh$c;
-
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 aLdh$c;a(DD)Ldh$c;
-
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 bLdh$c;b(D)Ldh$c;
-
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 cLdh$c;c(D)Ldh$c;
-
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 dLdh$c;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 eLdh$c;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 aLdh$c;a(Lcom/mojang/brigadier/StringReader;)Ldh$c;
-
parse
public static NumberRange.DoubleRange parse(com.mojang.brigadier.StringReader reader, Function<Double, Double> mapper) 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;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange$DoubleRange;intermediary method_9048Lnet/minecraft/class_2096$class_2099;method_9048(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/class_2096$class_2099;official aLdh$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Ldh$c;
-
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). -
min
Returns the value of theminrecord component.- Specified by:
minin interfaceNumberRange<Double>- Returns:
- the value of the
minrecord component
-
max
Returns the value of themaxrecord component.- Specified by:
maxin interfaceNumberRange<Double>- Returns:
- the value of the
maxrecord component
-
squaredMin
Returns the value of thesquaredMinrecord component.- Returns:
- the value of the
squaredMinrecord component
-
squaredMax
Returns the value of thesquaredMaxrecord component.- Returns:
- the value of the
squaredMaxrecord component
-