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 {
|
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
public boolean researchesEnabled;
|
|
|
|
public boolean researchesFreeInCreative;
|
|
|
|
public List<String> researchesTitles;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
public int blocksInfoLoadingDelay;
|
|
|
|
public int blocksAutoSaveDelay;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
public boolean guideShowVanillaRecipes;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
public int emeraldEnchantsLimit;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
public boolean legacyDustWasher;
|
|
|
|
public boolean legacyOreGrinder;
|
|
|
|
public boolean legacyOreWasher;
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-31 13:52:15 +00:00
|
|
|
public int smelteryFireBreakChance;
|
2019-08-29 13:13:40 +00:00
|
|
|
|
2019-08-29 08:26:36 +00:00
|
|
|
public Settings(Config cfg) {
|
2019-08-30 21:21:34 +00:00
|
|
|
researchesFreeInCreative = cfg.getBoolean("options.allow-free-creative-research");
|
|
|
|
researchesTitles = cfg.getStringList("research-ranks");
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
blocksInfoLoadingDelay = cfg.getInt("URID.info-delay");
|
|
|
|
blocksAutoSaveDelay = cfg.getInt("options.auto-save-delay-in-minutes");
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
guideShowVanillaRecipes = cfg.getBoolean("options.show-vanilla-recipes-in-guide");
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
emeraldEnchantsLimit = cfg.getInt("options.emerald-enchantment-limit");
|
2019-08-29 08:26:36 +00:00
|
|
|
|
2019-08-30 21:21:34 +00:00
|
|
|
legacyDustWasher = cfg.getBoolean("options.legacy-dust-washer");
|
|
|
|
legacyOreWasher = cfg.getBoolean("options.legacy-ore-washer");
|
|
|
|
legacyOreGrinder = cfg.getBoolean("options.legacy-ore-grinder");
|
2019-08-29 08:26:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|