Search in sources :

Example 1 with EggRunnable

use of com.magmaguy.elitemobs.mobs.passive.EggRunnable in project EliteMobs by MagmaGuy.

the class EliteMobs method launchRunnables.

/*
    Repeating tasks that run as long as the server is on
     */
private void launchRunnables() {
    if (!zoneBasedSpawningWorlds.isEmpty())
        Grid.initializeGrid();
    int eggTimerInterval = 20 * 60 * 10 / DefaultConfig.getSuperMobStackAmount();
    new PlayerPotionEffects();
    if (MobPropertiesConfig.getMobProperties().get(EntityType.CHICKEN).isEnabled() && DefaultConfig.getSuperMobStackAmount() > 0) {
        new EggRunnable().runTaskTimer(this, eggTimerInterval, eggTimerInterval);
    }
    // save regional bosses when the files update
    RegionalBossEntity.regionalDataSaver();
}
Also used : EggRunnable(com.magmaguy.elitemobs.mobs.passive.EggRunnable) PlayerPotionEffects(com.magmaguy.elitemobs.items.potioneffects.PlayerPotionEffects)

Aggregations

PlayerPotionEffects (com.magmaguy.elitemobs.items.potioneffects.PlayerPotionEffects)1 EggRunnable (com.magmaguy.elitemobs.mobs.passive.EggRunnable)1