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$DoubleRange
intermediary net/minecraft/class_2096$class_2099
official dh$c
named min
intermediary comp_1805
official e
named max
intermediary comp_1806
official f
named squaredMin
intermediary comp_1807
official g
named squaredMax
intermediary comp_1808
official 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
Modifier and TypeFieldDescriptionstatic final NumberRange.DoubleRange
static final com.mojang.serialization.Codec
<NumberRange.DoubleRange> The field for themax
record component.The field for themin
record component.The field for thesquaredMax
record component.The field for thesquaredMin
record component.Fields inherited from interface net.minecraft.predicate.NumberRange
EXCEPTION_EMPTY, EXCEPTION_SWAPPED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic NumberRange.DoubleRange
atLeast
(double value) static NumberRange.DoubleRange
atMost
(double value) static NumberRange.DoubleRange
between
(double min, double max) private static NumberRange.DoubleRange
final boolean
Indicates whether some other object is "equal to" this one.static NumberRange.DoubleRange
exactly
(double value) final int
hashCode()
Returns a hash code value for this object.max()
Returns the value of themax
record component.min()
Returns the value of themin
record component.static NumberRange.DoubleRange
parse
(com.mojang.brigadier.StringReader reader) static NumberRange.DoubleRange
Returns the value of thesquaredMax
record component.Returns the value of thesquaredMin
record component.boolean
test
(double value) boolean
testSqrt
(double value) final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.predicate.NumberRange
getConstantValue, isDummy
-
Field Details
-
min
The field for themin
record component. -
max
The field for themax
record component. -
squaredMin
The field for thesquaredMin
record component. -
squaredMax
The field for thesquaredMax
record component. -
ANY
- Mappings:
Namespace Name Mixin selector named ANY
Lnet/minecraft/predicate/NumberRange$DoubleRange;ANY:Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary field_9705
Lnet/minecraft/class_2096$class_2099;field_9705:Lnet/minecraft/class_2096$class_2099;
official c
Ldh$c;c:Ldh$c;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/predicate/NumberRange$DoubleRange;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_45762
Lnet/minecraft/class_2096$class_2099;field_45762:Lcom/mojang/serialization/Codec;
official d
Ldh$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;)V
intermediary <init>
Lnet/minecraft/class_2096$class_2099;<init>(Ljava/util/Optional;Ljava/util/Optional;)V
official <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 create
Lnet/minecraft/predicate/NumberRange$DoubleRange;create(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_9046
Lnet/minecraft/class_2096$class_2099;method_9046(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_2096$class_2099;
official a
Ldh$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Ldh$c;
-
square
- Mappings:
Namespace Name Mixin selector named square
Lnet/minecraft/predicate/NumberRange$DoubleRange;square(Ljava/util/Optional;)Ljava/util/Optional;
intermediary method_9044
Lnet/minecraft/class_2096$class_2099;method_9044(Ljava/util/Optional;)Ljava/util/Optional;
official a
Ldh$c;a(Ljava/util/Optional;)Ljava/util/Optional;
-
exactly
- Mappings:
Namespace Name Mixin selector named exactly
Lnet/minecraft/predicate/NumberRange$DoubleRange;exactly(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_35284
Lnet/minecraft/class_2096$class_2099;method_35284(D)Lnet/minecraft/class_2096$class_2099;
official a
Ldh$c;a(D)Ldh$c;
-
between
- Mappings:
Namespace Name Mixin selector named between
Lnet/minecraft/predicate/NumberRange$DoubleRange;between(DD)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_35285
Lnet/minecraft/class_2096$class_2099;method_35285(DD)Lnet/minecraft/class_2096$class_2099;
official a
Ldh$c;a(DD)Ldh$c;
-
atLeast
- Mappings:
Namespace Name Mixin selector named atLeast
Lnet/minecraft/predicate/NumberRange$DoubleRange;atLeast(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_9050
Lnet/minecraft/class_2096$class_2099;method_9050(D)Lnet/minecraft/class_2096$class_2099;
official b
Ldh$c;b(D)Ldh$c;
-
atMost
- Mappings:
Namespace Name Mixin selector named atMost
Lnet/minecraft/predicate/NumberRange$DoubleRange;atMost(D)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_35286
Lnet/minecraft/class_2096$class_2099;method_35286(D)Lnet/minecraft/class_2096$class_2099;
official c
Ldh$c;c(D)Ldh$c;
-
test
public boolean test(double value) - Mappings:
Namespace Name Mixin selector named test
Lnet/minecraft/predicate/NumberRange$DoubleRange;test(D)Z
intermediary method_9047
Lnet/minecraft/class_2096$class_2099;method_9047(D)Z
official d
Ldh$c;d(D)Z
-
testSqrt
public boolean testSqrt(double value) - Mappings:
Namespace Name Mixin selector named testSqrt
Lnet/minecraft/predicate/NumberRange$DoubleRange;testSqrt(D)Z
intermediary method_9045
Lnet/minecraft/class_2096$class_2099;method_9045(D)Z
official e
Ldh$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 parse
Lnet/minecraft/predicate/NumberRange$DoubleRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_9049
Lnet/minecraft/class_2096$class_2099;method_9049(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2099;
official a
Ldh$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 parse
Lnet/minecraft/predicate/NumberRange$DoubleRange;parse(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange$DoubleRange;
intermediary method_9048
Lnet/minecraft/class_2096$class_2099;method_9048(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/class_2096$class_2099;
official a
Ldh$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 themin
record component.- Specified by:
min
in interfaceNumberRange<Double>
- Returns:
- the value of the
min
record component
-
max
Returns the value of themax
record component.- Specified by:
max
in interfaceNumberRange<Double>
- Returns:
- the value of the
max
record component
-
squaredMin
Returns the value of thesquaredMin
record component.- Returns:
- the value of the
squaredMin
record component
-
squaredMax
Returns the value of thesquaredMax
record component.- Returns:
- the value of the
squaredMax
record component
-