CobbleSword / NachoSpigot

NachoSpigot is a fork of TacoSpigot 1.8.9 that offers several enhancements to performance as well as bug fixes.
GNU General Public License v3.0
237 stars 86 forks source link

Add API support for absorption hearts and EntityLiving#heal #364

Closed Archonic944 closed 2 years ago

Archonic944 commented 2 years ago

Description

I added API methods for EntityLiving#heal, under LivingEntity, and for EntityHuman's getAbsorptionHearts and setAbsorptionHearts methods under Player, respectively. I also added my own simple addAbsorptionHearts method under Player.

How has this been tested?

Tried calling methods I added support for.

Checklist:

Archonic944 commented 2 years ago

This is my first time making a pull request, I'm sorry if I did stuff wrong with accepting changes and whatnot.