1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-21 04:05:48 +00:00
Slimefun4/src/me/mrCookieSlime/Slimefun/utils/Settings.java

43 lines
1.2 KiB
Java
Raw Normal View History

package me.mrCookieSlime.Slimefun.utils;
2019-08-29 13:13:40 +00:00
import java.util.List;
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-30 21:21:34 +00:00
public int blocksInfoLoadingDelay;
public int blocksAutoSaveDelay;
2019-08-30 21:21:34 +00:00
public boolean guideShowVanillaRecipes;
2019-08-30 21:21:34 +00:00
public int emeraldEnchantsLimit;
2019-08-30 21:21:34 +00:00
public boolean legacyDustWasher;
public boolean legacyOreGrinder;
public boolean legacyOreWasher;
2019-08-31 13:52:15 +00:00
public int smelteryFireBreakChance;
2019-08-29 13:13:40 +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-30 21:21:34 +00:00
blocksInfoLoadingDelay = cfg.getInt("URID.info-delay");
blocksAutoSaveDelay = cfg.getInt("options.auto-save-delay-in-minutes");
2019-08-30 21:21:34 +00:00
guideShowVanillaRecipes = cfg.getBoolean("options.show-vanilla-recipes-in-guide");
2019-08-30 21:21:34 +00:00
emeraldEnchantsLimit = cfg.getInt("options.emerald-enchantment-limit");
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");
}
}