public class BoolArgumentType extends Object implements ArgumentType<Boolean>
| Modifier and Type | Method and Description |
|---|---|
static BoolArgumentType |
bool() |
static boolean |
getBool(CommandContext<?> context,
String name) |
Collection<String> |
getExamples() |
<S> CompletableFuture<Suggestions> |
listSuggestions(CommandContext<S> context,
SuggestionsBuilder builder) |
Boolean |
parse(StringReader reader) |
public static BoolArgumentType bool()
public static boolean getBool(CommandContext<?> context, String name)
public Boolean parse(StringReader reader) throws CommandSyntaxException
parse in interface ArgumentType<Boolean>CommandSyntaxExceptionpublic <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder)
listSuggestions in interface ArgumentType<Boolean>public Collection<String> getExamples()
getExamples in interface ArgumentType<Boolean>Copyright © 2018. All rights reserved.