Class RemoveRegionChildArgumentType

java.lang.Object
de.z0rdak.yawp.commands.arguments.region.RemoveRegionChildArgumentType
All Implemented Interfaces:
com.mojang.brigadier.arguments.ArgumentType<String>

public class RemoveRegionChildArgumentType extends Object implements com.mojang.brigadier.arguments.ArgumentType<String>
  • Field Details

    • VALID_NAME_PATTERN

      public static final Pattern VALID_NAME_PATTERN
  • Constructor Details

    • RemoveRegionChildArgumentType

      public RemoveRegionChildArgumentType()
  • Method Details

    • childRegions

      public static RemoveRegionChildArgumentType childRegions()
      Using this as an actual argument does not work on a server-side only mod, because it needs to be registered in the corresponding registry.
    • parse

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

      public <S> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)
      Lists the child regions for the region argument for removal.
      Specified by:
      listSuggestions in interface com.mojang.brigadier.arguments.ArgumentType<String>
    • getExamples

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