FabricMC / fabric

Essential hooks for modding with Fabric.
Apache License 2.0
2.21k stars 387 forks source link

More hud render events #1000

Open i509VCB opened 3 years ago

i509VCB commented 3 years ago

RenderHudCallback was added some time ago but I think mod devs would like some more flexiblity with a render callback at a different stage of rendering the in game hud.

A few ideas for some spots where some callbacks could be useful:

Also this is issue #1000. The 1000th issue on fabric api is definitely an achievement to reach, but I had to use the issue number for something lol.

JanThomas118 commented 3 years ago

Should these be raw Callbacks like the current RenderHudCallback, or should one be able to cancel the rendering of the associated HUD element (Similar to the new BlockBreakEvent) or even one be able to even move around vanilla HUD elements?

These are some question that came to my mind that need to be discussed before one can start implementing this.

Thoughts on the last after thinking a bit: I don't think this is feasible or atleast I have no idea on how to handle multiple mods with it. If one wants to move vanilla HUD elements they should probably cancel their rendering and render them again themselves (Is this better?) Although that would of course require the second aspect: being able to cancel the rendering of HUD elements.

neroduckale commented 4 weeks ago

1000 issue, but no activity.. #MOREHUDRENDEREVENTS