Class FloatRangeArgument

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

public class FloatRangeArgument extends Object
Mappings:
Namespace Name
official de
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 Lde;a:Lde;
      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 Lde;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 Lde;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 Lde;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

      public FloatRangeArgument(@Nullable @Nullable Float min, @Nullable @Nullable Float max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lde;<init>(Ljava/lang/Float;Ljava/lang/Float;)V
      intermediary <init> Lnet/minecraft/class_2152;<init>(Ljava/lang/Float;Ljava/lang/Float;)V
      named <init> Lnet/minecraft/command/FloatRangeArgument;<init>(Ljava/lang/Float;Ljava/lang/Float;)V
  • Method Details

    • exactly

      public static FloatRangeArgument exactly(float value)
      Mappings:
      Namespace Name Mixin selector
      official a Lde;a(F)Lde;
      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

      public static FloatRangeArgument between(float min, float max)
      Mappings:
      Namespace Name Mixin selector
      official a Lde;a(FF)Lde;
      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

      public static FloatRangeArgument atLeast(float value)
      Mappings:
      Namespace Name Mixin selector
      official b Lde;b(F)Lde;
      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

      public static FloatRangeArgument atMost(float value)
      Mappings:
      Namespace Name Mixin selector
      official c Lde;c(F)Lde;
      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 Lde;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 Lde;a(D)Z
      intermediary method_35400 Lnet/minecraft/class_2152;method_35400(D)Z
      named isInSquaredRange Lnet/minecraft/command/FloatRangeArgument;isInSquaredRange(D)Z
    • getMin

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

      public JsonElement toJson()
      Mappings:
      Namespace Name Mixin selector
      official c Lde;c()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

      public static FloatRangeArgument fromJson(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lde;a(Lcom/google/gson/JsonElement;)Lde;
      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 Lde;a(Lcom/mojang/brigadier/StringReader;Z)Lde;
      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 Lde;a(Lcom/mojang/brigadier/StringReader;ZLjava/util/function/Function;)Lde;
      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 Lde;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 Lde;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 Lde;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;