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 official ck
intermediary net/minecraft/class_2096
named net/minecraft/predicate/NumberRange
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
NumberRange.CommandFactory<T extends Number,
R extends NumberRange<T>> static final record
static interface
NumberRange.Factory<T extends Number,
R extends NumberRange<T>> static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
static 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 boolean
isDummy()
private static boolean
isNextCharValid
(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 official a
Lck;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
Lck;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
- Mappings:
Namespace Name Mixin selector official a
Lck;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
- Mappings:
Namespace Name Mixin selector official b
Lck;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
Lck;c()Z
intermediary method_9041
Lnet/minecraft/class_2096;method_9041()Z
named isDummy
Lnet/minecraft/predicate/NumberRange;isDummy()Z
-
getConstantValue
- Mappings:
Namespace Name Mixin selector official d
Lck;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;
-
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 official a
Lck;a(Lcom/mojang/serialization/Codec;Lck$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 createCodec
Lnet/minecraft/predicate/NumberRange;createCodec(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, 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 official a
Lck;a(Lcom/mojang/brigadier/StringReader;Lck$b;Ljava/util/function/Function;Ljava/util/function/Supplier;Ljava/util/function/Function;)Lck;
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
Lck;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
Lck;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
-