Just Enough Items (JEI)

Just Enough Items (JEI)

387M Downloads

[Suggestion]: Allow search to be accessed from the API

Tyrannicodin opened this issue ยท 4 comments

commented

Suggestion

I'd like to make a custom gui that implements JEI's search feature, and exposing a search function through the api would be helpful. If there's already a way to do this please let me know.

commented

Thanks for the suggestion!
Are you looking for mezz.jei.api.runtime.IIngredientFilter or do you need something else?
https://github.com/mezz/JustEnoughItems/blob/1.19/CommonApi/src/main/java/mezz/jei/api/runtime/IIngredientFilter.java

commented

Thanks for the reply, I think it is, so long as it can have prefixes.

commented

That's exactly what I needed, I'll close this for now and will send a message if anything is off.

commented

Yes, this is used directly by the search bar, so it should work the same including prefixes and other operators.
Please let me know if you run into anything unexpected.