Class BoolArgumentType
java.lang.Object
com.mojang.brigadier.arguments.BoolArgumentType
- All Implemented Interfaces:
ArgumentType<Boolean>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BoolArgumentTypebool()static booleangetBool(CommandContext<?> context, String name) listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) parse(StringReader reader) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ArgumentType
parse
-
Field Details
-
EXAMPLES
-
-
Constructor Details
-
BoolArgumentType
private BoolArgumentType()
-
-
Method Details
-
bool
-
getBool
-
parse
- Specified by:
parsein interfaceArgumentType<Boolean>- Throws:
CommandSyntaxException
-
listSuggestions
public <S> CompletableFuture<Suggestions> listSuggestions(CommandContext<S> context, SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfaceArgumentType<Boolean>
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<Boolean>
-