From 501ed4d753c086e8d603973b7e78f0ea322378fd Mon Sep 17 00:00:00 2001 From: Zeranny Date: Sun, 10 Mar 2024 18:26:14 +0000 Subject: [PATCH] Description for getSuggestions with context --- .../core/extension/factory/parser/RichParser.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java index c01609deb..4bfe5ffab 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java @@ -127,6 +127,14 @@ public abstract class RichParser extends InputParser implements AliasedPar return Stream.empty(); } + /** + * Returns a stream of suggestions for the argument at the given index. + * + * @param argumentInput the already provided input for the argument at the given index. + * @param index the index of the argument to get suggestions for. + * @param context the context which may optionally be provided by a parser. + * @return a stream of suggestions matching the given input for the argument at the given index. + */ protected Stream getSuggestions(String argumentInput, int index, ParserContext context) { return getSuggestions(argumentInput, index); }