I don't remember anymore. Tbh I wasn't sure if it was a method. It sounds more like an event to me? (I got the mod working by calling player.onUpdateAbilities, thanks)
I'm new to forge and I can't find methods other people talk about or I can't find the methods I would like to use for my project. Is there any complete documentation for forge (the official documentation was not helpful in some cases)