Package net.minecraft.predicate
Record Class NumberRange.FloatRange
java.lang.Object
java.lang.Record
net.minecraft.predicate.NumberRange.FloatRange
- Record Components:
getMin-getMax-squaredMin-squaredMax-
- All Implemented Interfaces:
NumberRange<Double>
- Enclosing interface:
NumberRange<T extends Number>
public static record NumberRange.FloatRange(Optional<Double> getMin, Optional<Double> getMax, Optional<Double> squaredMin, Optional<Double> squaredMax)
extends Record
implements NumberRange<Double>
- Mappings:
Namespace Name official cj$cintermediary net/minecraft/class_2096$class_2099named net/minecraft/predicate/NumberRange$FloatRangeofficial eintermediary comp_1805named getMinofficial fintermediary comp_1806named getMaxofficial gintermediary comp_1807named squaredMinofficial hintermediary comp_1808named squaredMax
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.predicate.NumberRange
NumberRange.CommandFactory<T extends Number,R extends NumberRange<T>>, NumberRange.Factory<T extends Number, R extends NumberRange<T>>, NumberRange.FloatRange, NumberRange.IntRange -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NumberRange.FloatRangestatic final com.mojang.serialization.Codec<NumberRange.FloatRange>The field for thegetMaxrecord component.The field for thegetMinrecord 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.FloatRangeatLeast(double value) static NumberRange.FloatRangeatMost(double value) static NumberRange.FloatRangebetween(double min, double max) private static NumberRange.FloatRangecreate(com.mojang.brigadier.StringReader reader, Optional<Double> optional, Optional<Double> optional2) final booleanIndicates whether some other object is "equal to" this one.static NumberRange.FloatRangeexactly(double value) static NumberRange.FloatRangefromJson(@Nullable JsonElement element) getMax()getMin()final inthashCode()Returns a hash code value for this object.static NumberRange.FloatRangeparse(com.mojang.brigadier.StringReader reader) static NumberRange.FloatRangeReturns 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
isDummy, method_53194
-
Field Details
-
getMin
The field for thegetMinrecord component. -
getMax
The field for thegetMaxrecord component. -
squaredMin
The field for thesquaredMinrecord component. -
squaredMax
The field for thesquaredMaxrecord component. -
ANY
- Mappings:
Namespace Name Mixin selector official cLcj$c;c:Lcj$c;intermediary field_9705Lnet/minecraft/class_2096$class_2099;field_9705:Lnet/minecraft/class_2096$class_2099;named ANYLnet/minecraft/predicate/NumberRange$FloatRange;ANY:Lnet/minecraft/predicate/NumberRange$FloatRange;
-
field_45762
- Mappings:
Namespace Name Mixin selector official dLcj$c;d:Lcom/mojang/serialization/Codec;intermediary field_45762Lnet/minecraft/class_2096$class_2099;field_45762:Lcom/mojang/serialization/Codec;named field_45762Lnet/minecraft/predicate/NumberRange$FloatRange;field_45762:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
FloatRange
-
FloatRange
-
-
Method Details
-
create
private static NumberRange.FloatRange create(com.mojang.brigadier.StringReader reader, Optional<Double> optional, Optional<Double> optional2) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLcj$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lcj$c;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;named createLnet/minecraft/predicate/NumberRange$FloatRange;create(Lcom/mojang/brigadier/StringReader;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
square
- Mappings:
Namespace Name Mixin selector official aLcj$c;a(Ljava/util/Optional;)Ljava/util/Optional;intermediary method_9044Lnet/minecraft/class_2096$class_2099;method_9044(Ljava/util/Optional;)Ljava/util/Optional;named squareLnet/minecraft/predicate/NumberRange$FloatRange;square(Ljava/util/Optional;)Ljava/util/Optional;
-
exactly
- Mappings:
Namespace Name Mixin selector official aLcj$c;a(D)Lcj$c;intermediary method_35284Lnet/minecraft/class_2096$class_2099;method_35284(D)Lnet/minecraft/class_2096$class_2099;named exactlyLnet/minecraft/predicate/NumberRange$FloatRange;exactly(D)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
between
- Mappings:
Namespace Name Mixin selector official aLcj$c;a(DD)Lcj$c;intermediary method_35285Lnet/minecraft/class_2096$class_2099;method_35285(DD)Lnet/minecraft/class_2096$class_2099;named betweenLnet/minecraft/predicate/NumberRange$FloatRange;between(DD)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
atLeast
- Mappings:
Namespace Name Mixin selector official bLcj$c;b(D)Lcj$c;intermediary method_9050Lnet/minecraft/class_2096$class_2099;method_9050(D)Lnet/minecraft/class_2096$class_2099;named atLeastLnet/minecraft/predicate/NumberRange$FloatRange;atLeast(D)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
atMost
- Mappings:
Namespace Name Mixin selector official cLcj$c;c(D)Lcj$c;intermediary method_35286Lnet/minecraft/class_2096$class_2099;method_35286(D)Lnet/minecraft/class_2096$class_2099;named atMostLnet/minecraft/predicate/NumberRange$FloatRange;atMost(D)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
test
public boolean test(double value) - Mappings:
Namespace Name Mixin selector official dLcj$c;d(D)Zintermediary method_9047Lnet/minecraft/class_2096$class_2099;method_9047(D)Znamed testLnet/minecraft/predicate/NumberRange$FloatRange;test(D)Z
-
testSqrt
public boolean testSqrt(double value) - Mappings:
Namespace Name Mixin selector official eLcj$c;e(D)Zintermediary method_9045Lnet/minecraft/class_2096$class_2099;method_9045(D)Znamed testSqrtLnet/minecraft/predicate/NumberRange$FloatRange;testSqrt(D)Z
-
fromJson
- Mappings:
Namespace Name Mixin selector official aLcj$c;a(Lcom/google/gson/JsonElement;)Lcj$c;intermediary method_9051Lnet/minecraft/class_2096$class_2099;method_9051(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2096$class_2099;named fromJsonLnet/minecraft/predicate/NumberRange$FloatRange;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
method_53196
- Mappings:
Namespace Name Mixin selector official eLcj$c;e()Lcom/google/gson/JsonElement;intermediary method_53196Lnet/minecraft/class_2096$class_2099;method_53196()Lcom/google/gson/JsonElement;named method_53196Lnet/minecraft/predicate/NumberRange$FloatRange;method_53196()Lcom/google/gson/JsonElement;
-
parse
public static NumberRange.FloatRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLcj$c;a(Lcom/mojang/brigadier/StringReader;)Lcj$c;intermediary method_9049Lnet/minecraft/class_2096$class_2099;method_9049(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_2096$class_2099;named parseLnet/minecraft/predicate/NumberRange$FloatRange;parse(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
parse
public static NumberRange.FloatRange 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 official aLcj$c;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lcj$c;intermediary method_9048Lnet/minecraft/class_2096$class_2099;method_9048(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/class_2096$class_2099;named parseLnet/minecraft/predicate/NumberRange$FloatRange;parse(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange$FloatRange;
-
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). -
getMin
- Specified by:
getMinin interfaceNumberRange<Double>- Mappings:
Namespace Name Mixin selector official aLcj;a()Ljava/util/Optional;intermediary comp_1805Lnet/minecraft/class_2096;comp_1805()Ljava/util/Optional;named getMinLnet/minecraft/predicate/NumberRange;getMin()Ljava/util/Optional;
-
getMax
- Specified by:
getMaxin interfaceNumberRange<Double>- Mappings:
Namespace Name Mixin selector official bLcj;b()Ljava/util/Optional;intermediary comp_1806Lnet/minecraft/class_2096;comp_1806()Ljava/util/Optional;named getMaxLnet/minecraft/predicate/NumberRange;getMax()Ljava/util/Optional;
-
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
-