Class ToggleArgumentType
java.lang.Object
com.zenith.command.brigadier.ToggleArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Boolean>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) parse(com.mojang.brigadier.StringReader reader) static ToggleArgumentTypetoggle()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parse
-
Constructor Details
-
ToggleArgumentType
public ToggleArgumentType()
-
-
Method Details
-
toggle
-
getToggle
public static boolean getToggle(com.mojang.brigadier.context.CommandContext<?> context, String name) -
parse
-
listSuggestions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) - Specified by:
listSuggestionsin interfacecom.mojang.brigadier.arguments.ArgumentType<Boolean>
-