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