Sana Posted May 6, 2019 Share Posted May 6, 2019 (edited) I am trying to figure out how much run energy I have left. How do I do this? I don't see an API for it... There is myPlayer().getHealthPercentage(), but no equivalent myPlayer().getEnergyPercentage(). EDIT: Never mind, found it. Using getSettings().getRunEnergy(). Edited May 6, 2019 by Lansana Camara 1 Link to comment Share on other sites More sharing options...
EsotericRS Posted May 6, 2019 Share Posted May 6, 2019 (edited) I had issue with this same thing. You would think it would be under myPlayer() Edited May 6, 2019 by EsotericRS Link to comment Share on other sites More sharing options...
Imthabawse Posted May 6, 2019 Share Posted May 6, 2019 The API is your friend. Sometimes just takes a bit of browsing to find what your looking for. Link to comment Share on other sites More sharing options...
Juggles Posted May 6, 2019 Share Posted May 6, 2019 settings.getRunEnergy(); Glad you found the solution Closing this. Link to comment Share on other sites More sharing options...
Kramnik Posted May 6, 2019 Share Posted May 6, 2019 Maybe this is possible using widgets? Link to comment Share on other sites More sharing options...