// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.team.kalstuff.KalStuff;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
import net.minecraftforge.fml.client.IModGuiFactory;
import net.minecraftforge.fml.client.config.GuiConfig;
import net.minecraftforge.fml.client.config.IConfigElement;
package com.team.kalstuff.config;




public class KalStuffGuiFactory implements IModGuiFactory
{
	@Override
	public void initialize(Minecraft minecraftInstance) {}

	@Override
	public boolean hasConfigGui()
	{
		return true;
	}

	@Override
	public GuiScreen createConfigGui(GuiScreen parentScreen)
	{
		return new ConfigGui(parentScreen);
	}

	@Override
	public Set<RuntimeOptionCategoryElement> runtimeGuiCategories()
	{
		return null;
	}

	public static class ConfigGui extends GuiConfig
	{
		public ConfigGui(GuiScreen parent)
		{
// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


// Path: src/main/java/com/team/kalstuff/config/KalStuffGuiFactory.java
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.team.kalstuff.KalStuff;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.resources.I18n;
import net.minecraftforge.fml.client.IModGuiFactory;
import net.minecraftforge.fml.client.config.GuiConfig;
import net.minecraftforge.fml.client.config.IConfigElement;

package com.team.kalstuff.config;




public class KalStuffGuiFactory implements IModGuiFactory
{
	@Override
	public void initialize(Minecraft minecraftInstance) {}

	@Override
	public boolean hasConfigGui()
	{
		return true;
	}

	@Override
	public GuiScreen createConfigGui(GuiScreen parentScreen)
	{
		return new ConfigGui(parentScreen);
	}

	@Override
	public Set<RuntimeOptionCategoryElement> runtimeGuiCategories()
	{
		return null;
	}

	public static class ConfigGui extends GuiConfig
	{
		public ConfigGui(GuiScreen parent)
		{
			super(parent, getList(), KalStuff.MODID, false, false, getTitle());