public class DoubleArgumentType extends Object implements ArgumentType<Double>
| Modifier and Type | Method and Description |
|---|---|
static DoubleArgumentType |
doubleArg() |
static DoubleArgumentType |
doubleArg(double min) |
static DoubleArgumentType |
doubleArg(double min,
double max) |
boolean |
equals(Object o) |
static double |
getDouble(CommandContext<?> context,
String name) |
Collection<String> |
getExamples() |
double |
getMaximum() |
double |
getMinimum() |
int |
hashCode() |
Double |
parse(StringReader reader) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitlistSuggestionspublic static DoubleArgumentType doubleArg()
public static DoubleArgumentType doubleArg(double min)
public static DoubleArgumentType doubleArg(double min, double max)
public static double getDouble(CommandContext<?> context, String name)
public double getMinimum()
public double getMaximum()
public Double parse(StringReader reader) throws CommandSyntaxException
parse in interface ArgumentType<Double>CommandSyntaxExceptionpublic Collection<String> getExamples()
getExamples in interface ArgumentType<Double>Copyright © 2018. All rights reserved.