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