Package com.sk89q.worldedit.command.util
Class SuggestionHelper
java.lang.Object
com.sk89q.worldedit.command.util.SuggestionHelper
Internal class for generating common command suggestions.
-
Method Summary
Modifier and TypeMethodDescriptiongetBlockCategorySuggestions(String tag, boolean allowRandom) getBlockPropertySuggestions(String blockTypeString, BlockType type, String props) getNamespacedRegistrySuggestions(NamespacedRegistry<V> registry, String input) getRegistrySuggestions(Registry<V> registry, String input) suggestBoolean(String argumentInput) Returns a stream of suggestions for booleans.suggestPositiveDoubles(String argumentInput) Returns a stream of suggestions for positive doubles.suggestPositiveIntegers(String argumentInput) Returns a stream of suggestions for positive integers.
-
Method Details
-
getBlockCategorySuggestions
-
getBlockPropertySuggestions
-
getRegistrySuggestions
-
getNamespacedRegistrySuggestions
public static <V extends Keyed> Stream<String> getNamespacedRegistrySuggestions(NamespacedRegistry<V> registry, String input) -
suggestPositiveDoubles
Returns a stream of suggestions for positive doubles.- Parameters:
argumentInput- the given input to filter with.- Returns:
- a stream of suggestions.
-
suggestPositiveIntegers
Returns a stream of suggestions for positive integers.- Parameters:
argumentInput- the given input to filter with.- Returns:
- a stream of suggestions.
-
suggestBoolean
Returns a stream of suggestions for booleans.- Parameters:
argumentInput- the given input to filter with.- Returns:
- a stream of suggestions.
-