Interface MinMaxBounds<T extends Number>
- All Known Implementing Classes:
MinMaxBounds.Doubles
,MinMaxBounds.Ints
public interface MinMaxBounds<T extends Number>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
MinMaxBounds.BoundsFactory<T extends Number,
R extends MinMaxBounds<T>> static interface
MinMaxBounds.BoundsFromReaderFactory<T extends Number,
R extends MinMaxBounds<T>> static final record
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 MinMaxBounds<T>>
com.mojang.serialization.Codec<R> createCodec
(com.mojang.serialization.Codec<T> p_297837_, MinMaxBounds.BoundsFactory<T, R> p_298619_) static <T extends Number,
R extends MinMaxBounds<T>>
RfromReader
(com.mojang.brigadier.StringReader p_55314_, MinMaxBounds.BoundsFromReaderFactory<T, R> p_55315_, Function<String, T> p_55316_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55317_, Function<T, T> p_55318_) private static boolean
isAllowedInputChat
(com.mojang.brigadier.StringReader p_55312_) default boolean
isAny()
max()
min()
readNumber
(com.mojang.brigadier.StringReader p_55320_, Function<String, T> p_55321_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55322_)
-
Field Details
-
ERROR_EMPTY
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EMPTY -
ERROR_SWAPPED
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SWAPPED
-
-
Method Details
-
min
-
max
-
isAny
default boolean isAny() -
unwrapPoint
-
createCodec
static <T extends Number,R extends MinMaxBounds<T>> com.mojang.serialization.Codec<R> createCodec(com.mojang.serialization.Codec<T> p_297837_, MinMaxBounds.BoundsFactory<T, R> p_298619_) -
fromReader
static <T extends Number,R extends MinMaxBounds<T>> R fromReader(com.mojang.brigadier.StringReader p_55314_, MinMaxBounds.BoundsFromReaderFactory<T, R> p_55315_, Function<String, throws com.mojang.brigadier.exceptions.CommandSyntaxExceptionT> p_55316_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55317_, Function<T, T> p_55318_) - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNumber
private static <T extends Number> Optional<T> readNumber(com.mojang.brigadier.StringReader p_55320_, Function<String, T> p_55321_, Supplier<com.mojang.brigadier.exceptions.DynamicCommandExceptionType> p_55322_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedInputChat
private static boolean isAllowedInputChat(com.mojang.brigadier.StringReader p_55312_)
-