Interface AfterUpdateStaminaListener
public interface AfterUpdateStaminaListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidonAfterUpdateStamina(String reason, int newStamina, boolean isCharacterStamina) onBeforeUpdateStamina() will be called before StaminaManager attempt to update the player's current stamina.
-
Method Details
-
onAfterUpdateStamina
onBeforeUpdateStamina() will be called before StaminaManager attempt to update the player's current stamina. This gives listeners a chance to intercept this update.- Parameters:
reason- Why updating stamina.newStamina- New Stamina value.
-