blob: bb40ed8648adf229e5f927e20304765fb7ef2a1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package darkknight.jewelrycraft.config;
import cpw.mods.fml.client.config.GuiConfig;
import cpw.mods.fml.client.config.IConfigElement;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigElement;
import java.util.ArrayList;
import java.util.List;
import darkknight.jewelrycraft.util.Variables;
public class ConfigGui extends GuiConfig
{
public ConfigGui(GuiScreen parent)
{
super(parent, getElements(), Variables.MODID, Variables.MODID, false, false, Variables.MODNAME + " Config");
}
@SuppressWarnings ({"rawtypes"})
private static List<IConfigElement> getElements()
{
List<IConfigElement> list = new ArrayList<IConfigElement>(ConfigHandler.categories.length);
for(String category: ConfigHandler.categories)
list.add(new ConfigElement(ConfigHandler.INSTANCE.config.getCategory(category)));
return list;
}
}
|