Package net.minecraft.command
Class FloatRangeArgument
java.lang.Object
net.minecraft.command.FloatRangeArgument
public class FloatRangeArgument extends Object
- Mappings:
Namespace Name official cz
intermediary net/minecraft/class_2152
named net/minecraft/command/FloatRangeArgument
-
Field Summary
Fields Modifier and Type Field Description static FloatRangeArgument
ANY
private Float
max
private Float
min
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ONLY_INTS_EXCEPTION
-
Constructor Summary
Constructors Constructor Description FloatRangeArgument(@Nullable Float float2, @Nullable Float float3)
-
Method Summary
Modifier and Type Method Description @Nullable Float
getMax()
@Nullable Float
getMin()
private static @Nullable Float
mapFloat(@Nullable Float float2, Function<Float,Float> function)
boolean
method_35400(double double2)
static FloatRangeArgument
method_35401(float float2)
static FloatRangeArgument
method_35402(float float2, float float3)
static FloatRangeArgument
method_35403(@Nullable JsonElement jsonElement)
static FloatRangeArgument
method_35404(com.mojang.brigadier.StringReader stringReader, boolean bool)
static FloatRangeArgument
method_35406(float float2)
JsonElement
method_35407()
static FloatRangeArgument
method_35408(float float2)
boolean
method_35409(float float2)
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)
-
Field Details
-
ANY
- Mappings:
Namespace Name Mixin selector official a
Lcz;a:Lcz;
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
Lcz;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;
-
min
- Mappings:
Namespace Name Mixin selector official c
Lcz;c:Ljava/lang/Float;
intermediary field_9778
Lnet/minecraft/class_2152;field_9778:Ljava/lang/Float;
named min
Lnet/minecraft/command/FloatRangeArgument;min:Ljava/lang/Float;
-
max
- Mappings:
Namespace Name Mixin selector official d
Lcz;d:Ljava/lang/Float;
intermediary field_9779
Lnet/minecraft/class_2152;field_9779:Ljava/lang/Float;
named max
Lnet/minecraft/command/FloatRangeArgument;max:Ljava/lang/Float;
-
-
Constructor Details
-
FloatRangeArgument
-
-
Method Details
-
method_35401
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(F)Lcz;
intermediary method_35401
Lnet/minecraft/class_2152;method_35401(F)Lnet/minecraft/class_2152;
named method_35401
Lnet/minecraft/command/FloatRangeArgument;method_35401(F)Lnet/minecraft/command/FloatRangeArgument;
-
method_35402
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(FF)Lcz;
intermediary method_35402
Lnet/minecraft/class_2152;method_35402(FF)Lnet/minecraft/class_2152;
named method_35402
Lnet/minecraft/command/FloatRangeArgument;method_35402(FF)Lnet/minecraft/command/FloatRangeArgument;
-
method_35406
- Mappings:
Namespace Name Mixin selector official b
Lcz;b(F)Lcz;
intermediary method_35406
Lnet/minecraft/class_2152;method_35406(F)Lnet/minecraft/class_2152;
named method_35406
Lnet/minecraft/command/FloatRangeArgument;method_35406(F)Lnet/minecraft/command/FloatRangeArgument;
-
method_35408
- Mappings:
Namespace Name Mixin selector official c
Lcz;c(F)Lcz;
intermediary method_35408
Lnet/minecraft/class_2152;method_35408(F)Lnet/minecraft/class_2152;
named method_35408
Lnet/minecraft/command/FloatRangeArgument;method_35408(F)Lnet/minecraft/command/FloatRangeArgument;
-
method_35409
public boolean method_35409(float float2)- Mappings:
Namespace Name Mixin selector official d
Lcz;d(F)Z
intermediary method_35409
Lnet/minecraft/class_2152;method_35409(F)Z
named method_35409
Lnet/minecraft/command/FloatRangeArgument;method_35409(F)Z
-
method_35400
public boolean method_35400(double double2)- Mappings:
Namespace Name Mixin selector official a
Lcz;a(D)Z
intermediary method_35400
Lnet/minecraft/class_2152;method_35400(D)Z
named method_35400
Lnet/minecraft/command/FloatRangeArgument;method_35400(D)Z
-
getMin
- Mappings:
Namespace Name Mixin selector official a
Lcz;a()Ljava/lang/Float;
intermediary method_9175
Lnet/minecraft/class_2152;method_9175()Ljava/lang/Float;
named getMin
Lnet/minecraft/command/FloatRangeArgument;getMin()Ljava/lang/Float;
-
getMax
- Mappings:
Namespace Name Mixin selector official b
Lcz;b()Ljava/lang/Float;
intermediary method_9177
Lnet/minecraft/class_2152;method_9177()Ljava/lang/Float;
named getMax
Lnet/minecraft/command/FloatRangeArgument;getMax()Ljava/lang/Float;
-
method_35407
- Mappings:
Namespace Name Mixin selector official c
Lcz;c()Lcom/google/gson/JsonElement;
intermediary method_35407
Lnet/minecraft/class_2152;method_35407()Lcom/google/gson/JsonElement;
named method_35407
Lnet/minecraft/command/FloatRangeArgument;method_35407()Lcom/google/gson/JsonElement;
-
method_35403
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Lcom/google/gson/JsonElement;)Lcz;
intermediary method_35403
Lnet/minecraft/class_2152;method_35403(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_2152;
named method_35403
Lnet/minecraft/command/FloatRangeArgument;method_35403(Lcom/google/gson/JsonElement;)Lnet/minecraft/command/FloatRangeArgument;
-
method_35404
public static FloatRangeArgument method_35404(com.mojang.brigadier.StringReader stringReader, boolean bool) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lcz;a(Lcom/mojang/brigadier/StringReader;Z)Lcz;
intermediary method_35404
Lnet/minecraft/class_2152;method_35404(Lcom/mojang/brigadier/StringReader;Z)Lnet/minecraft/class_2152;
named method_35404
Lnet/minecraft/command/FloatRangeArgument;method_35404(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
Lcz;a(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Lcz;
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
Lcz;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
Lcz;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 float2, Function<Float,Float> function)- Mappings:
Namespace Name Mixin selector official a
Lcz;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;
-