Package net.minecraft.command
Record Class FloatRangeArgument
java.lang.Object
java.lang.Record
net.minecraft.command.FloatRangeArgument
- Record Components:
min
-max
-
- Mappings:
Namespace Name official dj
intermediary net/minecraft/class_2152
named net/minecraft/command/FloatRangeArgument
official c
intermediary comp_1840
named min
official d
intermediary comp_1841
named max
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FloatRangeArgument
private final @Nullable Float
The field for themax
record component.private final @Nullable Float
The field for themin
record component.static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
ConstructorDescriptionFloatRangeArgument
(@Nullable Float min, @Nullable Float max) Creates an instance of aFloatRangeArgument
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FloatRangeArgument
atLeast
(float value) static FloatRangeArgument
atMost
(float value) static FloatRangeArgument
between
(float min, float max) final boolean
Indicates whether some other object is "equal to" this one.static FloatRangeArgument
exactly
(float value) static FloatRangeArgument
fromJson
(@Nullable com.google.gson.JsonElement json) final int
hashCode()
Returns a hash code value for this object.boolean
isInRange
(float value) boolean
isInSquaredRange
(double value) private static @Nullable Float
@Nullable Float
max()
Returns the value of themax
record component.@Nullable Float
min()
Returns the value of themin
record component.static FloatRangeArgument
parse
(com.mojang.brigadier.StringReader reader, boolean allowFloats) static FloatRangeArgument
parse
(com.mojang.brigadier.StringReader reader, boolean allowFloats, Function<Float, Float> transform) private static @Nullable Float
parseFloat
(com.mojang.brigadier.StringReader reader, boolean allowFloats) private static boolean
peekDigit
(com.mojang.brigadier.StringReader reader, boolean allowFloats) com.google.gson.JsonElement
toJson()
final String
toString()
Returns a string representation of this record class.
-
Field Details
-
min
The field for themin
record component. -
max
The field for themax
record component. -
ANY
- Mappings:
Namespace Name Mixin selector official a
Ldj;a:Ldj;
intermediary field_9780
Lnet/minecraft/class_2152;field_9780:Lnet/minecraft/class_2152;
named ANY
Lnet/minecraft/command/FloatRangeArgument;ANY:Lnet/minecraft/command/FloatRangeArgument;
-
ONLY_INTS_EXCEPTION
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ONLY_INTS_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Ldj;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
intermediary field_9781
Lnet/minecraft/class_2152;field_9781:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
named ONLY_INTS_EXCEPTION
Lnet/minecraft/command/FloatRangeArgument;ONLY_INTS_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
Method Details
-
exactly
- Mappings:
Namespace Name Mixin selector official a
Ldj;a(F)Ldj;
intermediary method_35401
Lnet/minecraft/class_2152;method_35401(F)Lnet/minecraft/class_2152;
named exactly
Lnet/minecraft/command/FloatRangeArgument;exactly(F)Lnet/minecraft/command/FloatRangeArgument;
-
between
- Mappings:
Namespace Name Mixin selector official a
Ldj;a(FF)Ldj;
intermediary method_35402
Lnet/minecraft/class_2152;method_35402(FF)Lnet/minecraft/class_2152;
named between
Lnet/minecraft/command/FloatRangeArgument;between(FF)Lnet/minecraft/command/FloatRangeArgument;
-
atLeast
- Mappings:
Namespace Name Mixin selector official b
Ldj;b(F)Ldj;
intermediary method_35406
Lnet/minecraft/class_2152;method_35406(F)Lnet/minecraft/class_2152;
named atLeast
Lnet/minecraft/command/FloatRangeArgument;atLeast(F)Lnet/minecraft/command/FloatRangeArgument;
-
atMost
- Mappings:
Namespace Name Mixin selector official c
Ldj;c(F)Ldj;
intermediary method_35408
Lnet/minecraft/class_2152;method_35408(F)Lnet/minecraft/class_2152;
named atMost
Lnet/minecraft/command/FloatRangeArgument;atMost(F)Lnet/minecraft/command/FloatRangeArgument;
-
isInRange
public boolean isInRange(float value) - Mappings:
Namespace Name Mixin selector official d
Ldj;d(F)Z
intermediary method_35409
Lnet/minecraft/class_2152;method_35409(F)Z
named isInRange
Lnet/minecraft/command/FloatRangeArgument;isInRange(F)Z
-
isInSquaredRange
public boolean isInSquaredRange(double value) - Mappings:
Namespace Name Mixin selector official a
Ldj;a(D)Z
intermediary method_35400
Lnet/minecraft/class_2152;method_35400(D)Z
named isInSquaredRange
Lnet/minecraft/command/FloatRangeArgument;isInSquaredRange(D)Z
-
toJson
public com.google.gson.JsonElement toJson()- Mappings:
Namespace Name Mixin selector official a
Ldj;a()Lcom/google/gson/JsonElement;
intermediary method_35407
Lnet/minecraft/class_2152;method_35407()Lcom/google/gson/JsonElement;
named toJson
Lnet/minecraft/command/FloatRangeArgument;toJson()Lcom/google/gson/JsonElement;
-
fromJson
- Mappings:
Namespace Name Mixin selector official a
Ldj;a(Lcom/google/gson/JsonElement;)Ldj;
intermediary method_35403
Lnet/minecraft/class_2152;method_35403(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2152;
named fromJson
Lnet/minecraft/command/FloatRangeArgument;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/command/FloatRangeArgument;
-
parse
public static FloatRangeArgument parse(com.mojang.brigadier.StringReader reader, boolean allowFloats) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldj;a(Lcom/mojang/brigadier/StringReader;Z)Ldj;
intermediary method_35404
Lnet/minecraft/class_2152;method_35404(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2152;
named parse
Lnet/minecraft/command/FloatRangeArgument;parse(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/command/FloatRangeArgument;
-
parse
public static FloatRangeArgument parse(com.mojang.brigadier.StringReader reader, boolean allowFloats, Function<Float, Float> transform) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Ldj;a(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Ldj;
intermediary method_9172
Lnet/minecraft/class_2152;method_9172(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Lnet/minecraft/class_2152;
named parse
Lnet/minecraft/command/FloatRangeArgument;parse(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Lnet/minecraft/command/FloatRangeArgument;
-
parseFloat
@Nullable private static @Nullable Float parseFloat(com.mojang.brigadier.StringReader reader, boolean allowFloats) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Ldj;b(Lcom/mojang/brigadier/StringReader;Z)Ljava/lang/Float;
intermediary method_9176
Lnet/minecraft/class_2152;method_9176(Lcom/mojang/brigadier/StringReader;Z)Ljava/lang/Float;
named parseFloat
Lnet/minecraft/command/FloatRangeArgument;parseFloat(Lcom/mojang/brigadier/StringReader;Z)Ljava/lang/Float;
-
peekDigit
private static boolean peekDigit(com.mojang.brigadier.StringReader reader, boolean allowFloats) - Mappings:
Namespace Name Mixin selector official c
Ldj;c(Lcom/mojang/brigadier/StringReader;Z)Z
intermediary method_9173
Lnet/minecraft/class_2152;method_9173(Lcom/mojang/brigadier/StringReader;Z)Z
named peekDigit
Lnet/minecraft/command/FloatRangeArgument;peekDigit(Lcom/mojang/brigadier/StringReader;Z)Z
-
mapFloat
@Nullable private static @Nullable Float mapFloat(@Nullable @Nullable Float value, Function<Float, Float> function) - Mappings:
Namespace Name Mixin selector official a
Ldj;a(Ljava/lang/Float;Ljava/util/function/Function;)Ljava/lang/Float;
intermediary method_9174
Lnet/minecraft/class_2152;method_9174(Ljava/lang/Float;Ljava/util/function/Function;)Ljava/lang/Float;
named mapFloat
Lnet/minecraft/command/FloatRangeArgument;mapFloat(Ljava/lang/Float;Ljava/util/function/Function;)Ljava/lang/Float;
-
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.- Returns:
- the value of the
min
record component
-
max
Returns the value of themax
record component.- Returns:
- the value of the
max
record component
-