Class ToggleArgumentType

java.lang.Object
com.zenith.command.brigadier.ToggleArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<Boolean>

public class ToggleArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<Boolean>
  • Constructor Details

    • ToggleArgumentType

      public ToggleArgumentType()
  • Method Details

    • toggle

      public static ToggleArgumentType toggle()
    • getToggle

      public static boolean getToggle(com.mojang.brigadier.context.CommandContext<?> context, String name)
    • parse

      public Boolean parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      parse in interface com.mojang.brigadier.arguments.ArgumentType<Boolean>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • listSuggestions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<Boolean>