Interface NumberRange<T extends Number>

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

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

    • EXCEPTION_EMPTY

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

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

    • min

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

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

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

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

      static <T extends Number, R extends NumberRange<T>> com.mojang.serialization.Codec<R> createCodec(com.mojang.serialization.Codec<T> valueCodec, NumberRange.Factory<T,R> rangeFactory)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/predicate/NumberRange;createCodec(Lcom/mojang/serialization/Codec;Lnet/minecraft/predicate/NumberRange$Factory;)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;
      official a Ldj;a(Lcom/mojang/serialization/Codec;Ldj$a;)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
      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;
      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;
      official a Ldj;a(Lcom/mojang/brigadier/StringReader;Ldj$b;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Ldj;
    • 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
      named fromStringReader Lnet/minecraft/predicate/NumberRange;fromStringReader(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;
      official a Ldj;a(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
      named isNextCharValid Lnet/minecraft/predicate/NumberRange;isNextCharValid(Lcom/mojang/brigadier/StringReader;)Z
      intermediary method_9040 Lnet/minecraft/class_2096;method_9040(Lcom/mojang/brigadier/StringReader;)Z
      official a Ldj;a(Lcom/mojang/brigadier/StringReader;)Z