public final class FloatParameterType extends java.lang.Object implements ParameterType<CommandActor,java.lang.Float>
ParameterType for parsing float typesParameterType.Factory<A extends CommandActor>| Constructor and Description |
|---|
FloatParameterType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
parse(@NotNull MutableStringStream input,
@NotNull ExecutionContext<CommandActor> context)
Reads input from the given
MutableStringStream, parses the object, or throws
exceptions if needed. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultSuggestions, isGreedy, parsePrioritypublic java.lang.Float parse(@NotNull
@NotNull MutableStringStream input,
@NotNull
@NotNull ExecutionContext<CommandActor> context)
ParameterTypeMutableStringStream, parses the object, or throws
exceptions if needed.
Note: Lamp makes no guarantees about the times it may invoke this method. It may be called repeatedly for execution, tab completion, finding execution candidates, etc.
As such, it's important to implement the parse method with the following in mind:
CommandErrorException)parse in interface ParameterType<CommandActor,java.lang.Float>input - The input stream. This argument type is free to consume as much as it needscontext - The command execution context, as well as arguments that have been resolved