Search in sources :

Example 1 with PotionEffectApplier

use of com.magmaguy.elitemobs.elitedrops.PotionEffectApplier in project EliteMobs by MagmaGuy.

the class EliteMobs method repeatingTaskRunner.

public void repeatingTaskRunner() {
    //eggs need to scale with stacked amount
    int passiveStackAmount = ConfigValues.defaultConfig.getInt("Passive EliteMob stack amount");
    MobScanner mobScanner = new MobScanner(this);
    PotionEffectApplier potionEffectApplier = new PotionEffectApplier();
    ScoreboardHandler scoreboardHandler = new ScoreboardHandler();
    processID = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {

        public void run() {
            mobScanner.scanMobs(passiveStackAmount);
            potionEffectApplier.potionEffectApplier();
            scoreboardHandler.scanSight();
        }
    }, 20, 20);
}
Also used : ScoreboardHandler(com.magmaguy.elitemobs.scoreboard.ScoreboardHandler) PotionEffectApplier(com.magmaguy.elitemobs.elitedrops.PotionEffectApplier) MobScanner(com.magmaguy.elitemobs.mobscanner.MobScanner)

Aggregations

PotionEffectApplier (com.magmaguy.elitemobs.elitedrops.PotionEffectApplier)1 MobScanner (com.magmaguy.elitemobs.mobscanner.MobScanner)1 ScoreboardHandler (com.magmaguy.elitemobs.scoreboard.ScoreboardHandler)1