Class IntegerInput
java.lang.Object
io.github.lucfr1746.llibrary.chatinput.input.ChatInput
io.github.lucfr1746.llibrary.chatinput.input.IntegerInput
A child class of AquaInput used for the input of integer values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidInput
(@NotNull String input) Checks if the given input is valid.parseInput
(@NotNull String input) Parses the given input if possible into an integer.Methods inherited from class io.github.lucfr1746.llibrary.chatinput.input.ChatInput
copyTo, getAttempts, getTimeout, hasFlag, isCommandAllowed, sendMessage, sendMessage, setAllowedCommands, setAllowedCommands, setAttempts, setFlags, setMessage, setTimeout
-
Constructor Details
-
IntegerInput
public IntegerInput()
-
-
Method Details
-
isValidInput
Description copied from class:ChatInput
Checks if the given input is valid.- Specified by:
isValidInput
in classChatInput
- Parameters:
input
- the input
-
parseInput
Parses the given input if possible into an integer.- Parameters:
input
- the input- Returns:
- an optional that may contain the parsed value
-