mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-16 10:44:45 +00:00
Filtering the input in the ItemQuantityField (#623)
Co-authored-by: slprime <[email protected]>
This commit is contained in:
1 parent
8ae3304861
commit
5ad6095c43
4 files changed
+170
-105
No files matched your search
@@ -100,6 +100,8 @@ public class SearchField extends TextField implements ItemFilterProvider {
|
||||
super(Minecraft.getMinecraft().fontRenderer, 0, 0, 0, 0);
|
||||
this.searchParser = searchParser;
|
||||
setFormatter(new SearchTextFormatter(searchParser));
|
||||
setDisabledTextColour(0xFF303030);
|
||||
setPlaceholder(NEIClientUtils.translate("inventory.search.placeholder"));
|
||||
}
|
||||
|
||||
public ItemFilter getFilter() {
|
||||
|
||||
Reference in new issue
Block a user