Class FloatArgument.FloatParser<C>
- java.lang.Object
-
- cloud.commandframework.arguments.standard.FloatArgument.FloatParser<C>
-
- All Implemented Interfaces:
ArgumentParser<C,java.lang.Float>
- Enclosing class:
- FloatArgument<C>
public static final class FloatArgument.FloatParser<C> extends java.lang.Object implements ArgumentParser<C,java.lang.Float>
-
-
Constructor Summary
Constructors Constructor Description FloatParser(float min, float max)
Construct a new float parser
-
Method Summary
Modifier and Type Method Description float
getMax()
Get the max valuefloat
getMin()
Get the min valueboolean
isContextFree()
Check whether or not this argument parser is context free.@NonNull ArgumentParseResult<java.lang.Float>
parse(@NonNull CommandContext<C> commandContext, @NonNull java.util.Queue<java.lang.String> inputQueue)
Parse command input into a command result-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
suggestions
-
-
-
-
Method Detail
-
parse
public @NonNull ArgumentParseResult<java.lang.Float> parse(@NonNull CommandContext<C> commandContext, @NonNull java.util.Queue<java.lang.String> inputQueue)
Description copied from interface:ArgumentParser
Parse command input into a command result- Specified by:
parse
in interfaceArgumentParser<C,java.lang.Float>
- Parameters:
commandContext
- Command contextinputQueue
- The queue of arguments- Returns:
- Parsed command result
-
isContextFree
public boolean isContextFree()
Description copied from interface:ArgumentParser
Check whether or not this argument parser is context free. A context free parser will not use the provided command context, and so supports impromptu parsing- Specified by:
isContextFree
in interfaceArgumentParser<C,java.lang.Float>
- Returns:
true
if the parser is context free, elsefalse
-
getMax
public float getMax()
Get the max value- Returns:
- Max value
-
getMin
public float getMin()
Get the min value- Returns:
- Min value
-
-