Interface NumberRange<T extends Number>

All Known Implementing Classes:
NumberRange.DoubleRange, NumberRange.IntRange

public interface NumberRange<T extends Number>
Mappings:
Namespace Name
official cl
intermediary net/minecraft/class_2096
named net/minecraft/predicate/NumberRange
  • Field Details

    • EXCEPTION_EMPTY

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9700 Lnet/minecraft/class_2096;field_9700:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named EXCEPTION_EMPTY Lnet/minecraft/predicate/NumberRange;EXCEPTION_EMPTY:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • EXCEPTION_SWAPPED

      static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_SWAPPED
      Mappings:
      Namespace Name Mixin selector
      official b Lcl;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_9701 Lnet/minecraft/class_2096;field_9701:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named EXCEPTION_SWAPPED Lnet/minecraft/predicate/NumberRange;EXCEPTION_SWAPPED:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Method Details

    • min

      Optional<T> min()
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a()Ljava/util/Optional;
      intermediary comp_1805 Lnet/minecraft/class_2096;comp_1805()Ljava/util/Optional;
      named min Lnet/minecraft/predicate/NumberRange;min()Ljava/util/Optional;
    • max

      Optional<T> max()
      Mappings:
      Namespace Name Mixin selector
      official b Lcl;b()Ljava/util/Optional;
      intermediary comp_1806 Lnet/minecraft/class_2096;comp_1806()Ljava/util/Optional;
      named max Lnet/minecraft/predicate/NumberRange;max()Ljava/util/Optional;
    • isDummy

      default boolean isDummy()
      Mappings:
      Namespace Name Mixin selector
      official c Lcl;c()Z
      intermediary method_9041 Lnet/minecraft/class_2096;method_9041()Z
      named isDummy Lnet/minecraft/predicate/NumberRange;isDummy()Z
    • getConstantValue

      default Optional<T> getConstantValue()
      Mappings:
      Namespace Name Mixin selector
      official d Lcl;d()Ljava/util/Optional;
      intermediary method_53194 Lnet/minecraft/class_2096;method_53194()Ljava/util/Optional;
      named getConstantValue Lnet/minecraft/predicate/NumberRange;getConstantValue()Ljava/util/Optional;
    • method_53191

      static <T extends Number, R extends NumberRange<T>> com.mojang.serialization.Codec<R> method_53191(com.mojang.serialization.Codec<T> codec, NumberRange.Factory<T,R> factory)
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a(Lcom/mojang/serialization/Codec;Lcl$a;)Lcom/mojang/serialization/Codec;
      intermediary method_53191 Lnet/minecraft/class_2096;method_53191(Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2096$class_2097;)Lcom/mojang/serialization/Codec;
      named method_53191 Lnet/minecraft/predicate/NumberRange;method_53191(Lcom/mojang/serialization/Codec;Lnet/minecraft/predicate/NumberRange$Factory;)Lcom/mojang/serialization/Codec;
    • parse

      static <T extends Number, R extends NumberRange<T>> R parse(com.mojang.brigadier.StringReader commandReader, NumberRange.CommandFactory<T,R> commandFactory, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier, Function<T,T> mapper) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a(Lcom/mojang/brigadier/StringReader;Lcl$b;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lcl;
      intermediary method_9043 Lnet/minecraft/class_2096;method_9043(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/class_2096$class_2098;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lnet/minecraft/class_2096;
      named parse Lnet/minecraft/predicate/NumberRange;parse(Lcom/mojang/brigadier/StringReader;Lnet/minecraft/predicate/NumberRange$CommandFactory;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lnet/minecraft/predicate/NumberRange;
    • fromStringReader

      private static <T extends Number> Optional<T> fromStringReader(com.mojang.brigadier.StringReader reader, Function<String,T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
      intermediary method_9037 Lnet/minecraft/class_2096;method_9037(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
      named fromStringReader Lnet/minecraft/predicate/NumberRange;fromStringReader(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;
    • isNextCharValid

      private static boolean isNextCharValid(com.mojang.brigadier.StringReader reader)
      Mappings:
      Namespace Name Mixin selector
      official a Lcl;a(Lcom/mojang/brigadier/StringReader;)Z
      intermediary method_9040 Lnet/minecraft/class_2096;method_9040(Lcom/mojang/brigadier/StringReader;)Z
      named isNextCharValid Lnet/minecraft/predicate/NumberRange;isNextCharValid(Lcom/mojang/brigadier/StringReader;)Z