2016-01-01 17:08:17 +00:00
|
|
|
package WayofTime.bloodmagic.client.gui.config;
|
2014-11-04 00:11:10 +00:00
|
|
|
|
2016-02-25 13:54:18 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-07-29 12:23:01 +00:00
|
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
|
|
import net.minecraftforge.common.config.ConfigElement;
|
|
|
|
import net.minecraftforge.fml.client.config.GuiConfig;
|
|
|
|
import net.minecraftforge.fml.client.config.IConfigElement;
|
2016-02-25 13:54:18 +00:00
|
|
|
import WayofTime.bloodmagic.ConfigHandler;
|
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
2015-12-30 20:34:40 +00:00
|
|
|
public class ConfigGui extends GuiConfig
|
|
|
|
{
|
2014-11-04 00:11:10 +00:00
|
|
|
|
2015-12-30 20:34:40 +00:00
|
|
|
public ConfigGui(GuiScreen parentScreen)
|
|
|
|
{
|
2015-11-29 02:25:46 +00:00
|
|
|
super(parentScreen, getConfigElements(parentScreen), Constants.Mod.MODID, false, false, "BloodMagic Configuration");
|
2015-10-30 03:22:14 +00:00
|
|
|
}
|
2014-11-04 00:11:10 +00:00
|
|
|
|
2015-10-30 03:22:14 +00:00
|
|
|
@SuppressWarnings("rawtypes")
|
2015-12-30 20:34:40 +00:00
|
|
|
private static List<IConfigElement> getConfigElements(GuiScreen parent)
|
|
|
|
{
|
2015-10-30 03:22:14 +00:00
|
|
|
List<IConfigElement> list = new ArrayList<IConfigElement>();
|
2014-11-04 00:11:10 +00:00
|
|
|
|
2015-12-30 20:34:40 +00:00
|
|
|
// adds sections declared in ConfigHandler. toLowerCase() is used
|
|
|
|
// because the configuration class automatically does this, so must we.
|
2015-11-03 01:45:11 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Potions".toLowerCase())));
|
2016-03-01 07:20:57 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Client".toLowerCase())));
|
2016-01-01 18:16:19 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Compatibility".toLowerCase())));
|
2015-11-03 01:45:11 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Teleposer Blacklist".toLowerCase())));
|
2016-01-10 02:05:21 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Well of Suffering Blacklist".toLowerCase())));
|
2015-11-03 01:45:11 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Item/Block Blacklisting".toLowerCase())));
|
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("General".toLowerCase())));
|
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Rituals".toLowerCase())));
|
2016-01-20 03:53:32 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("Blood Altar Sacrificial Values".toLowerCase())));
|
2016-03-17 21:57:29 +00:00
|
|
|
list.add(new ConfigElement(ConfigHandler.getConfig().getCategory("IDontLikeFun".toLowerCase())));
|
2014-11-04 00:11:10 +00:00
|
|
|
|
2015-10-30 03:22:14 +00:00
|
|
|
return list;
|
|
|
|
}
|
2014-11-04 00:11:10 +00:00
|
|
|
}
|