Interface MinMaxBounds<T extends Number>
- All Known Implementing Classes:
- MinMaxBounds.Doubles,- MinMaxBounds.Ints
public interface MinMaxBounds<T extends Number>
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMinMaxBounds.BoundsFactory<T extends Number,R extends MinMaxBounds<T>> static interfaceMinMaxBounds.BoundsFromReaderFactory<T extends Number,R extends MinMaxBounds<T>> static final recordstatic final record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypestatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T extends Number,R extends MinMaxBounds<T>> 
 com.mojang.serialization.Codec<R>createCodec(com.mojang.serialization.Codec<T> p_298521_, MinMaxBounds.BoundsFactory<T, R> p_298688_) 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 booleanisAllowedInputChat(com.mojang.brigadier.StringReader p_55312_) default booleanisAny()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_EMPTYstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_EMPTY
- 
ERROR_SWAPPEDstatic final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_SWAPPED
 
- 
- 
Method Details- 
min
- 
max
- 
isAnydefault boolean isAny()
- 
unwrapPoint
- 
createCodecstatic <T extends Number,R extends MinMaxBounds<T>> com.mojang.serialization.Codec<R> createCodec(com.mojang.serialization.Codec<T> p_298521_, MinMaxBounds.BoundsFactory<T, R> p_298688_) 
- 
fromReaderstatic <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
 
- 
readNumberprivate 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
 
- 
isAllowedInputChatprivate static boolean isAllowedInputChat(com.mojang.brigadier.StringReader p_55312_) 
 
-