Search in sources :

Example 1 with TimerUpdater

use of com.github.sirblobman.combatlogx.api.object.TimerUpdater in project CombatLogX by SirBlobman.

the class TimerUpdateTask method update.

private void update(Player player) {
    ICombatManager combatManager = this.plugin.getCombatManager();
    long timeLeftMillis = combatManager.getTimerLeftMillis(player);
    if (timeLeftMillis <= 0L) {
        return;
    }
    Set<TimerUpdater> timerUpdaterSet = getTimerUpdaters();
    for (TimerUpdater timerUpdater : timerUpdaterSet) {
        timerUpdater.update(player, timeLeftMillis);
    }
}
Also used : ICombatManager(com.github.sirblobman.combatlogx.api.manager.ICombatManager) TimerUpdater(com.github.sirblobman.combatlogx.api.object.TimerUpdater)

Aggregations

ICombatManager (com.github.sirblobman.combatlogx.api.manager.ICombatManager)1 TimerUpdater (com.github.sirblobman.combatlogx.api.object.TimerUpdater)1