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