1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] One more class

This commit is contained in:
TheBusyBiscuit 2020-03-05 01:02:03 +01:00
parent f08521e7b9
commit 0ab4ba425c

View File

@ -5,35 +5,35 @@ import java.util.List;
import io.github.thebusybiscuit.cscorelib2.config.Config;
public final class ConfigCache {
public final boolean printOutLoading;
public boolean researchesEnabled;
public final boolean researchesFreeInCreative;
public final boolean researchFireworksEnabled;
public final List<String> researchesTitles;
public final boolean translationsEnabled;
public final int emeraldEnchantsLimit;
public final boolean legacyDustWasher;
public final boolean legacyOreGrinder;
public final boolean legacyOreWasher;
public ConfigCache(Config cfg) {
printOutLoading = cfg.getBoolean("options.print-out-loading");
translationsEnabled = cfg.getBoolean("options.enable-translations");
researchesFreeInCreative = cfg.getBoolean("options.allow-free-creative-research");
researchesTitles = cfg.getStringList("research-ranks");
researchFireworksEnabled = cfg.getBoolean("options.research-unlock-fireworks");
emeraldEnchantsLimit = cfg.getInt("options.emerald-enchantment-limit");
legacyDustWasher = cfg.getBoolean("options.legacy-dust-washer");
legacyOreWasher = cfg.getBoolean("options.legacy-ore-washer");
legacyOreGrinder = cfg.getBoolean("options.legacy-ore-grinder");
}
public final boolean printOutLoading;
public boolean researchesEnabled;
public final boolean researchesFreeInCreative;
public final boolean researchFireworksEnabled;
public final List<String> researchesTitles;
public final boolean translationsEnabled;
public final int emeraldEnchantsLimit;
public final boolean legacyDustWasher;
public final boolean legacyOreGrinder;
public final boolean legacyOreWasher;
public ConfigCache(Config cfg) {
printOutLoading = cfg.getBoolean("options.print-out-loading");
translationsEnabled = cfg.getBoolean("options.enable-translations");
researchesFreeInCreative = cfg.getBoolean("options.allow-free-creative-research");
researchesTitles = cfg.getStringList("research-ranks");
researchFireworksEnabled = cfg.getBoolean("options.research-unlock-fireworks");
emeraldEnchantsLimit = cfg.getInt("options.emerald-enchantment-limit");
legacyDustWasher = cfg.getBoolean("options.legacy-dust-washer");
legacyOreWasher = cfg.getBoolean("options.legacy-ore-washer");
legacyOreGrinder = cfg.getBoolean("options.legacy-ore-grinder");
}
}