Closed Minenash closed 6 months ago
@Minenash Oh no, I did not know how to do that! I learned the current method from the implementation of some HUD-related mod, and from what I've heard, that seems to be the better method. Thanks for letting me know!
I noticed that you mixin into
InGameHud
and inject into therenderStatusEffectOverlay
method. Like your description mentions, this could cause problems if other mods mess with status effect rendering.Fabric API does have an event for hud rendering
HudRenderCallback.EVENT
. Using this would be less prone to accidental breakage