Interface AfterUpdateStaminaListener


public interface AfterUpdateStaminaListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onAfterUpdateStamina(String reason, int newStamina, boolean isCharacterStamina)
    onBeforeUpdateStamina() will be called before StaminaManager attempt to update the player's current stamina.
  • Method Details

    • onAfterUpdateStamina

      void onAfterUpdateStamina(String reason, int newStamina, boolean isCharacterStamina)
      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.