Class DoubleArgument
java.lang.Object
me.efekos.simpler.commands.syntax.Argument
me.efekos.simpler.commands.syntax.impl.DoubleArgument
An example extension of custom 
Arguments: This argument can be any double, or a double in a range.- 
Constructor Summary
ConstructorsConstructorDescriptionDoubleArgument(String holder, ArgumentPriority priority) Crates an instance ofDoubleArgument.DoubleArgument(String holder, ArgumentPriority priority, double min, double max) Crates an instance ofDoubleArgument. - 
Method Summary
Modifier and TypeMethodDescriptionGenerates a list of suggestions about this argument.Returns a short placeholder to represent this argument.Returns a priority about this argument.handleCorrection(String given) Makes sure that the argument player wrote is valid. 
- 
Constructor Details
- 
DoubleArgument
Crates an instance ofDoubleArgument.- Parameters:
 holder- Placeholder of the argument.priority- Priority of the argument.min- Minimum value.max- Maximum value.
 - 
DoubleArgument
Crates an instance ofDoubleArgument.- Parameters:
 holder- Placeholder of the argument.priority- Priority of the argument.
 
 - 
 - 
Method Details
- 
getPlaceHolder
Returns a short placeholder to represent this argument. However,Argument.toString()is more recommended than this method if you want to represent this argument as aString.- Specified by:
 getPlaceHolderin classArgument- Returns:
 - The placeholder of this argument. Placeholder is usually a one-word string that represents what this argument should be. For example: 
<player>argument should be the name of anOfflinePlayer. We are able to understand this, because that argument's placeholder is "player", meaning we should enter someone's name there. 
 - 
getList
Generates a list of suggestions about this argument. - 
getPriority
Returns a priority about this argument.- Specified by:
 getPriorityin classArgument- Returns:
 - Priority of this argument. You can make your argument an optional or required argument using this.
 
 - 
handleCorrection
Makes sure that the argument player wrote is valid.- Specified by:
 handleCorrectionin classArgument- Parameters:
 given- The string that someone wrote as a value for this argument- Returns:
 - Is the given argument valid?
 
 
 -