Class ToggleArgumentType
java.lang.Object
com.zenith.command.brigadier.ToggleArgumentType
- All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Boolean>, SerializableArgumentType<Boolean>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull CommandParserstatic 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.mojang.brigadier.arguments.ArgumentType
getExamples, parseMethods inherited from interface SerializableArgumentType
askServerForSuggestions, commandProperties
-
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>
-
commandParser
- Specified by:
commandParserin interfaceSerializableArgumentType<Boolean>
-