Just Enough Items (JEI)

Just Enough Items (JEI)

390M Downloads

[Suggestion]: expose API endpoint to disable default `Show Recipes` tooltip

rlnt opened this issue ยท 0 comments

commented

Suggestion

I'd like to handle the tooltip when hovering over the click area myself because I display a lot of information on the same spot.
Since it's very conventional that the recipe click area is the progress arrow, I would have two overlapping tooltips.

Registering a custom GUI handler through IGuiHandlerRegistration#addGuiContainerHandler is possible and I am able to overwrite IGuiClickableArea#getTooltipStrings but this method won't allow you to disable the tooltip rendering at all. If you return an empty list, it will use the default Show Recipes tooltip which is quite annoying.

I suggest that the tooltip is disabled completely if you return an empty list and there is another default implementation that (if not overridden) still shows the default tooltip.
Or maybe expose another method like tooltipEnabled which returns a boolean.