Skip to content

Commit 72d05e9

Browse files
committed
accept a collection for elements in ElementLookupStringReplacer
1 parent 012ef5e commit 72d05e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/me/hsgamer/bettergui/api/replacer/ElementLookupStringReplacer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import me.hsgamer.hscore.common.StringReplacer;
66
import org.jetbrains.annotations.Nullable;
77

8-
import java.util.List;
8+
import java.util.Collection;
99

1010
/**
1111
* An extension of {@link StringReplacer} for cases where we want to choose replacers based on {@link MenuElement}'s name
@@ -16,7 +16,7 @@ public interface ElementLookupStringReplacer<T extends MenuElement> extends Look
1616
*
1717
* @return the elements
1818
*/
19-
List<T> getElements();
19+
Collection<T> getElements();
2020

2121
/**
2222
* Get the prefix of the lookup string. This is for backward compatibility.

0 commit comments

Comments
 (0)