Uses of Interface
dev.sympho.modular_commands.api.command.parameter.parse.FloatParser
Packages that use FloatParser
Package
Description
Interfaces defining how received arguments are parsed.
-
Uses of FloatParser in dev.sympho.modular_commands.api.command.parameter.parse
Methods in dev.sympho.modular_commands.api.command.parameter.parse that return FloatParserModifier and TypeMethodDescriptionstatic FloatParser<Double>Parsers.number()Creates a parser that receives plain floating-point values.static FloatParser<Double>Parsers.number(@MinLen(1) List<ChoicesParser.Choice<Double>> choices) Creates a parser that receives plain floating-point values from within a set of choices.static FloatParser<Double>Parsers.number(ChoicesParser.Choice<Double> @MinLen(1) ... choices) Creates a parser that receives plain floating-point values from within a set of choices.static <T extends @NonNull Object>
FloatParser<T>Parsers.number(ParserFunction<Double, T> parser) Creates a parser that uses the given function to parse received values.static FloatParser<Double>Parsers.numberAbove(double minimum) Creates a parser that receives plain floating-point values, which must be at least the given value.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberAbove(double minimum, ParserFunction<Double, T> parser) Creates a parser that uses the given function to parse received values, which must be at least the given value.static FloatParser<Double>Parsers.numberBelow(double maximum) Creates a parser that receives plain floating-point values, which must be at most the given value.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberBelow(double maximum, ParserFunction<Double, T> parser) Creates a parser that uses the given function to parse received values, which must be at most the given value.static FloatParser<Double>Parsers.numberBetween(double minimum, double maximum) Creates a parser that receives plain floating-point values, which must be between the given values.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberBetween(double minimum, double maximum, ParserFunction<Double, T> parser) Creates a parser that uses the given function to parse received values, which must be between the given values.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberChoice(@MinLen(1) List<Map.Entry<ChoicesParser.Choice<Double>, T>> choices) Creates a parser that receives a value from within a set of choices.static <T extends @NonNull Object>
FloatParser<T>Parsers.numberChoice(Map.Entry<ChoicesParser.Choice<Double>, T> @MinLen(1) ... choices) Creates a parser that receives a value from within a set of choices.