Package net.minecraft.predicate
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/NumberRangeintermediary net/minecraft/class_2096official dh
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceNumberRange.CommandFactory<T extends Number,R extends NumberRange<T>> static final recordstatic interfaceNumberRange.Factory<T extends Number,R extends NumberRange<T>> static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Number,R extends NumberRange<T>>
com.mojang.serialization.Codec<R> createCodec(com.mojang.serialization.Codec<T> valueCodec, NumberRange.Factory<T, R> rangeFactory) fromStringReader(com.mojang.brigadier.StringReader reader, Function<String, T> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier) default booleanisDummy()private static booleanisNextCharValid(com.mojang.brigadier.StringReader reader) max()min()static <T extends Number,R extends NumberRange<T>>
Rparse(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)
-
Field Details
-
EXCEPTION_EMPTY
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_EMPTY- Mappings:
Namespace Name Mixin selector named EXCEPTION_EMPTYLnet/minecraft/predicate/NumberRange;EXCEPTION_EMPTY:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9700Lnet/minecraft/class_2096;field_9700:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official aLdh;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
EXCEPTION_SWAPPED
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType EXCEPTION_SWAPPED- Mappings:
Namespace Name Mixin selector named EXCEPTION_SWAPPEDLnet/minecraft/predicate/NumberRange;EXCEPTION_SWAPPED:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_9701Lnet/minecraft/class_2096;field_9701:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;official bLdh;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Method Details
-
min
- Mappings:
Namespace Name Mixin selector named minLnet/minecraft/predicate/NumberRange;min()Ljava/util/Optional;intermediary comp_1805Lnet/minecraft/class_2096;comp_1805()Ljava/util/Optional;official aLdh;a()Ljava/util/Optional;
-
max
- Mappings:
Namespace Name Mixin selector named maxLnet/minecraft/predicate/NumberRange;max()Ljava/util/Optional;intermediary comp_1806Lnet/minecraft/class_2096;comp_1806()Ljava/util/Optional;official bLdh;b()Ljava/util/Optional;
-
isDummy
default boolean isDummy()- Mappings:
Namespace Name Mixin selector named isDummyLnet/minecraft/predicate/NumberRange;isDummy()Zintermediary method_9041Lnet/minecraft/class_2096;method_9041()Zofficial cLdh;c()Z
-
getConstantValue
- Mappings:
Namespace Name Mixin selector named getConstantValueLnet/minecraft/predicate/NumberRange;getConstantValue()Ljava/util/Optional;intermediary method_53194Lnet/minecraft/class_2096;method_53194()Ljava/util/Optional;official dLdh;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 createCodecLnet/minecraft/predicate/NumberRange;createCodec(Lcom/mojang/serialization/Codec;Lnet/minecraft/predicate/NumberRange$Factory;)Lcom/mojang/serialization/Codec;intermediary method_53191Lnet/minecraft/class_2096;method_53191(Lcom/mojang/serialization/Codec;Lnet/minecraft/class_2096$class_2097;)Lcom/mojang/serialization/Codec;official aLdh;a(Lcom/mojang/serialization/Codec;Ldh$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, throws com.mojang.brigadier.exceptions.CommandSyntaxExceptionT> converter, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> exceptionTypeSupplier, Function<T, T> mapper) - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector named parseLnet/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_9043Lnet/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 aLdh;a(Lcom/mojang/brigadier/StringReader;Ldh$b;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Ldh;
-
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 fromStringReaderLnet/minecraft/predicate/NumberRange;fromStringReader(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;intermediary method_9037Lnet/minecraft/class_2096;method_9037(Lcom/mojang/brigadier/StringReader;Ljava/util/function/Function;Ljava/util/function/Supplier;)Ljava/util/Optional;official aLdh;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 isNextCharValidLnet/minecraft/predicate/NumberRange;isNextCharValid(Lcom/mojang/brigadier/StringReader;)Zintermediary method_9040Lnet/minecraft/class_2096;method_9040(Lcom/mojang/brigadier/StringReader;)Zofficial aLdh;a(Lcom/mojang/brigadier/StringReader;)Z
-