In the base API, there is a function EntityPlayer:RemoveBlackHeart() that can be used to update the black heart mask and turn a black heart directly into a soul heart without the need to add/remove hearts. However, there is no equivalent for turning a soul heart into a black heart. This would be helpful for managing the state of black hearts in systems such as CHAPI.
In the base API, there is a function
EntityPlayer:RemoveBlackHeart()
that can be used to update the black heart mask and turn a black heart directly into a soul heart without the need to add/remove hearts. However, there is no equivalent for turning a soul heart into a black heart. This would be helpful for managing the state of black hearts in systems such as CHAPI.