Class FloatRangeArgument

java.lang.Object
net.minecraft.command.FloatRangeArgument

public class FloatRangeArgument
extends Object
Mappings:
Namespace Name
official cu
intermediary net/minecraft/class_2152
named net/minecraft/command/FloatRangeArgument
  • Field Details

    • ANY

      public static final FloatRangeArgument ANY
      Mappings:
      Namespace Name Mixin selector
      official a Lcu;a:Lcu;
      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 Lcu;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

      private final Float min
      Mappings:
      Namespace Name Mixin selector
      official c Lcu;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

      private final Float max
      Mappings:
      Namespace Name Mixin selector
      official d Lcu;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

  • Method Details

    • getMin

      @Nullable public Float getMin()
      Mappings:
      Namespace Name Mixin selector
      official a Lcu;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

      @Nullable public Float getMax()
      Mappings:
      Namespace Name Mixin selector
      official b Lcu;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;
    • 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 Lcu;a(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Lcu;
      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 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 Lcu;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 Lcu;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 Float mapFloat​(@Nullable Float float2, Function<Float,​Float> function)
      Mappings:
      Namespace Name Mixin selector
      official a Lcu;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;