[Feature] Use reflection to determine if REI should display its gui
zly2006 opened this issue ยท 1 comments
What is your feature request?
I am a mod developer and I used HandledScreen
to pass on extended information. But REI treats my screen as an inventory, and displayed its gui on the top of my screen.
Here's a way that i suggest:
I want REI to check the screen before displaying gui: (1) if this class has a public method, like shouldReiDisplayGui
, which returns bool
. (2) only display gui when this method returns true.
What do you think this change is of?
- Visual
- Recipe Lookup
- Cheat Mode
- Plugin Integration / JEI Plugin Compatibility
- Others
REI exposes a way to do it via REI's API, and without ugly hacks like reflection: https://www.craft.do/s/qj8mHyTVd7qkOZ/b/76D2B72D-660A-4CE7-8205-E2F578EAE897/Screens_(Client)
To register your own OverlayDecider, check Constructing Plugins and override registerScreens
.