2019-08-29 08:26:36 +00:00
|
|
|
package me.mrCookieSlime.Slimefun.utils;
|
|
|
|
|
2019-08-29 13:13:40 +00:00
|
|
|
import java.util.List;
|
|
|
|
|
2019-08-29 08:26:36 +00:00
|
|
|
import me.mrCookieSlime.CSCoreLibPlugin.Configuration.Config;
|
|
|
|
|
|
|
|
public final class Settings {
|
|
|
|
|
|
|
|
public boolean RESEARCHES_ENABLED;
|
|
|
|
public boolean RESEARCHES_FREE_IN_CREATIVE;
|
2019-08-29 13:13:40 +00:00
|
|
|
public List<String> RESEARCHES_TITLES;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
|
|
|
public int BLOCK_LOADING_INFO_DELAY;
|
|
|
|
public int BLOCK_AUTO_SAVE_DELAY;
|
|
|
|
|
|
|
|
public boolean GUIDE_SHOW_VANILLA_RECIPES;
|
|
|
|
|
|
|
|
public int EMERALD_ENCHANTS_LIMIT;
|
|
|
|
|
|
|
|
public boolean DUST_WASHER_LEGACY;
|
|
|
|
public boolean ORE_GRINDER_LEGACY;
|
|
|
|
public boolean ORE_WASHER_LEGACY;
|
|
|
|
|
2019-08-29 13:13:40 +00:00
|
|
|
public int SMELTERY_FIRE_BREAK_CHANCE;
|
|
|
|
|
2019-08-29 08:26:36 +00:00
|
|
|
public Settings(Config cfg) {
|
|
|
|
RESEARCHES_FREE_IN_CREATIVE = cfg.getBoolean("options.allow-free-creative-research");
|
2019-08-29 13:13:40 +00:00
|
|
|
RESEARCHES_TITLES = cfg.getStringList("research-ranks");
|
2019-08-29 08:26:36 +00:00
|
|
|
|
|
|
|
BLOCK_LOADING_INFO_DELAY = cfg.getInt("URID.info-delay");
|
|
|
|
BLOCK_AUTO_SAVE_DELAY = cfg.getInt("options.auto-save-delay-in-minutes");
|
|
|
|
|
|
|
|
GUIDE_SHOW_VANILLA_RECIPES = cfg.getBoolean("options.show-vanilla-recipes-in-guide");
|
|
|
|
|
|
|
|
EMERALD_ENCHANTS_LIMIT = cfg.getInt("options.emerald-enchantment-limit");
|
|
|
|
|
|
|
|
DUST_WASHER_LEGACY = cfg.getBoolean("options.legacy-dust-washer");
|
|
|
|
ORE_WASHER_LEGACY = cfg.getBoolean("options.legacy-ore-washer");
|
|
|
|
ORE_GRINDER_LEGACY = cfg.getBoolean("options.legacy-ore-grinder");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|