Class SuggestionHelper

java.lang.Object
com.sk89q.worldedit.command.util.SuggestionHelper

public final class SuggestionHelper extends Object
Internal class for generating common command suggestions.
  • Method Details

    • getBlockCategorySuggestions

      public static Stream<String> getBlockCategorySuggestions(String tag, boolean allowRandom)
    • getBlockPropertySuggestions

      public static Stream<String> getBlockPropertySuggestions(String blockType, String props)
    • getRegistrySuggestions

      public static <V extends Keyed> Stream<String> getRegistrySuggestions(Registry<V> registry, String input)
    • getNamespacedRegistrySuggestions

      public static <V extends Keyed> Stream<String> getNamespacedRegistrySuggestions(NamespacedRegistry<V> registry, String input)
    • suggestPositiveDoubles

      public static Stream<String> suggestPositiveDoubles(String argumentInput)
      Returns a stream of suggestions for positive doubles.
      Parameters:
      argumentInput - the given input to filter with.
      Returns:
      a stream of suggestions.
    • suggestPositiveIntegers

      public static Stream<String> suggestPositiveIntegers(String argumentInput)
      Returns a stream of suggestions for positive integers.
      Parameters:
      argumentInput - the given input to filter with.
      Returns:
      a stream of suggestions.
    • suggestBoolean

      public static Stream<String> suggestBoolean(String argumentInput)
      Returns a stream of suggestions for booleans.
      Parameters:
      argumentInput - the given input to filter with.
      Returns:
      a stream of suggestions.