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();
}
Aggregations