VazkiiMods / Neat

Functional minimalistic Unit Frames for the modern Minecrafter
Other
71 stars 72 forks source link

Adding toughness support to neat #34

Closed esotericist closed 2 years ago

esotericist commented 6 years ago

Also made icons, because I couldn't find anything useful in vanilla. I kinda bashed them out in like a minute, so if there's something else that'd work better my feelings won't be hurt. :)

Rationale: in a sufficiently busy modpack, a lot of random things can end up with surprising amounts of toughness, so having an idea when it's present can be helpful. But it is admittedly more visual noise, so I've got it set to default to off.

esotericist commented 6 years ago

Was on a roll, added potion effects. They also default off, and there's a config option to control their spacing.

Used code from InGame-Info-XML as a reference, but between it being both such tiny amount of logic and MIT licensed, shouldn't be any issues here.

I feel kind of bad overriding renderIcon() in the particular fashion I did, but I wasn't quite sure how to split out the logic.