PatchworkMC / patchwork-api

An attempt to reimplement the Minecraft Forge API on Fabric
GNU Lesser General Public License v2.1
282 stars 48 forks source link

ForgeIngameGui stuff #216

Closed stairman06 closed 3 years ago

stairman06 commented 3 years ago

This is similar to #58 but it's less invasive (doesn't overwrite every status bar). The result is what feels like a bit of a hack, so feel free to close this PR if it's bad. This has not been extensively tested, but it does work with Classic Bars (closes #9)

stairman06 commented 3 years ago

Found a bug caused by firing the post events before anything actually renders, fixed it. There may still be weirdness with event ordering but I'm not sure how much better it could be.

stairman06 commented 3 years ago

Fixed a bug with absorption, also replaced a few high ordinals. There are still some high ordinals with @ModifyVariable - I tried using slices and it didn't appear to do anything.

stairman06 commented 3 years ago

Closing this, I don't really want to port this to 1.16. It's too fragile anyway. Someone else can try if they want to.