mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 08:29:09 +01:00
26 lines
977 B
Java
26 lines
977 B
Java
package ellpeck.actuallyadditions.config;
|
|
|
|
import cpw.mods.fml.client.config.GuiConfig;
|
|
import cpw.mods.fml.client.config.IConfigElement;
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
|
import net.minecraft.client.gui.GuiScreen;
|
|
import net.minecraftforge.common.config.ConfigCategory;
|
|
import net.minecraftforge.common.config.ConfigElement;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
public class GuiConfiguration extends GuiConfig{
|
|
|
|
public GuiConfiguration(GuiScreen parentScreen){
|
|
super(parentScreen, getConfigElements(), ModUtil.MOD_ID, true, true, ModUtil.NAME);
|
|
}
|
|
|
|
private static List<IConfigElement> getConfigElements(){
|
|
List<IConfigElement> list = new ArrayList<IConfigElement>();
|
|
for(int i = 0; i < ConfigCategories.values().length; i++){
|
|
list.add(new ConfigElement<ConfigCategory>(ConfigurationHandler.config.getCategory(ConfigCategories.values()[i].name.toLowerCase())));
|
|
}
|
|
return list;
|
|
}
|
|
}
|