Roughly Enough Items Fabric/Forge/NeoForge (REI)

Roughly Enough Items Fabric/Forge/NeoForge (REI)

40M Downloads

Expose Filtering Rules as API

MaxNeedsSnacks opened this issue ยท 2 comments

commented

What is your feature request?

Currently, the only way for a plugin to "remove" an entry is to remove it from the entry registry. Unlike what may seem intuitive for people coming from a mod like JEI, this does not also remove the target entry from the list of entry ingredients (for example, the cycling stacks in recipe displays), since the entry registry really just represents the user-facing display on the side of the inventory screen.

One possible solution for keeping this split intact while also allowing addon devs to actually properly hide things from REI entirely (including as ingredients in displays) would be to expose the currently internal concept of Filtering Rules as public API. From a cursory glance, this definitely seems doable, though internals would have to be changed significantly to not just differentiate between the existing two types of filtering rules, but to allow for a more general distinction between custom "fixed" default filtering rules (which would in turn fully "hide" the ingredient from view) and dynamic filtering (e.g through search)

What do you think this change is of?

  • Visual
  • Recipe Lookup
  • Cheat Mode
  • Plugin Integration / JEI Plugin Compatibility
  • Others
commented

The cycling issue mentioned in this is what's displayed here shedaniel/REIPluginCompatibilities-Issues#13

commented

Duplicate of shedaniel/REIPluginCompatibilities-Issues#13
EDIT: I am blind