Class ArgumentTypeConfigProperty

java.lang.Object
org.cyclops.cyclopscore.command.argument.ArgumentTypeConfigProperty
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<ConfigurablePropertyData>

public class ArgumentTypeConfigProperty extends Object implements com.mojang.brigadier.arguments.ArgumentType<ConfigurablePropertyData>
Argument types for config properties.
  • Constructor Details

    • ArgumentTypeConfigProperty

      public ArgumentTypeConfigProperty(ModBase mod)
  • Method Details

    • getMod

      public ModBase getMod()
    • parse

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

      public Collection<String> getExamples()
      Specified by:
      getExamples in interface com.mojang.brigadier.arguments.ArgumentType<ConfigurablePropertyData>
    • listSuggestions

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