// Path: src/main/java/wanion/unidict/UniDict.java
// @SuppressWarnings("unused")
// @Mod(modid = MOD_ID, name = MOD_NAME, version = MOD_VERSION, acceptedMinecraftVersions = MC_VERSION, dependencies = DEPENDENCIES)
// public final class UniDict
// {
// 	@Mod.Instance(MOD_ID)
// 	public static UniDict instance;
// 
// 	@SidedProxy(clientSide = CLIENT_PROXY, serverSide = SERVER_PROXY)
// 	public static CommonProxy proxy;
// 
// 	private static Logger logger;
// 
// 	public static Logger getLogger()
// 	{
// 		return logger;
// 	}
// 
// 	public static Dependencies<IDependency> getDependencies()
// 	{
// 		return proxy.dependencies;
// 	}
// 
// 	public static ResourceHandler getResourceHandler()
// 	{
// 		return proxy.dependencies.get(ResourceHandler.class);
// 	}
// 
// 	public static UniOreDictionary getUniOreDictionary()
// 	{
// 		return proxy.dependencies.get(UniOreDictionary.class);
// 	}
// 
// 	public static Config getConfig()
// 	{
// 		return Config.INSTANCE;
// 	}
// 
// 	public static UniDictAPI getAPI()
// 	{
// 		return UniDictAPI.getInstance();
// 	}
// 
// 	public static ModuleHandler getModuleHandler()
// 	{
// 		return proxy.moduleHandler;
// 	}
// 
// 	@Mod.EventHandler
// 	public void preInit(final FMLPreInitializationEvent event)
// 	{
// 		logger = event.getModLog();
// 		proxy.preInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(final FMLInitializationEvent event)
// 	{
// 		proxy.init(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void postInit(final FMLPostInitializationEvent event)
// 	{
// 		proxy.postInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void loadComplete(final FMLLoadCompleteEvent event)
// 	{
// 		proxy.loadComplete(event);
// 		proxy.clean();
// 	}
// 
// 	@NetworkCheckHandler
// 	public boolean matchModVersions(final Map<String, String> remoteVersions, final Side side)
// 	{
// 		return side == Side.CLIENT ? remoteVersions.containsKey(MOD_ID) : !remoteVersions.containsKey(MOD_ID) || remoteVersions.get(MOD_ID).equals(MOD_VERSION);
// 	}
// 
// 	public interface IDependency {}
// 
// 	@Retention(RetentionPolicy.RUNTIME)
// 	@Target(ElementType.TYPE)
// 	public @interface Module {}
// 
// 	@Retention(RetentionPolicy.RUNTIME)
// 	@Target(ElementType.TYPE)
// 	public @interface Integration {}
// }


import net.minecraft.client.util.RecipeBookClient;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import wanion.unidict.UniDict;
package wanion.unidict.proxy;

/*
 * Created by WanionCane(https://github.com/WanionCane).
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


public class ClientProxy extends CommonProxy {
	@Override
	public void postInit(final FMLPostInitializationEvent event)
	{
		super.postInit(event);

		try {
			RecipeBookClient.rebuildTable();
			UniDict.getLogger().info("Fixed the Recipe Book");
		}
		catch (Exception e){
// Path: src/main/java/wanion/unidict/UniDict.java
// @SuppressWarnings("unused")
// @Mod(modid = MOD_ID, name = MOD_NAME, version = MOD_VERSION, acceptedMinecraftVersions = MC_VERSION, dependencies = DEPENDENCIES)
// public final class UniDict
// {
// 	@Mod.Instance(MOD_ID)
// 	public static UniDict instance;
// 
// 	@SidedProxy(clientSide = CLIENT_PROXY, serverSide = SERVER_PROXY)
// 	public static CommonProxy proxy;
// 
// 	private static Logger logger;
// 
// 	public static Logger getLogger()
// 	{
// 		return logger;
// 	}
// 
// 	public static Dependencies<IDependency> getDependencies()
// 	{
// 		return proxy.dependencies;
// 	}
// 
// 	public static ResourceHandler getResourceHandler()
// 	{
// 		return proxy.dependencies.get(ResourceHandler.class);
// 	}
// 
// 	public static UniOreDictionary getUniOreDictionary()
// 	{
// 		return proxy.dependencies.get(UniOreDictionary.class);
// 	}
// 
// 	public static Config getConfig()
// 	{
// 		return Config.INSTANCE;
// 	}
// 
// 	public static UniDictAPI getAPI()
// 	{
// 		return UniDictAPI.getInstance();
// 	}
// 
// 	public static ModuleHandler getModuleHandler()
// 	{
// 		return proxy.moduleHandler;
// 	}
// 
// 	@Mod.EventHandler
// 	public void preInit(final FMLPreInitializationEvent event)
// 	{
// 		logger = event.getModLog();
// 		proxy.preInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void init(final FMLInitializationEvent event)
// 	{
// 		proxy.init(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void postInit(final FMLPostInitializationEvent event)
// 	{
// 		proxy.postInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void loadComplete(final FMLLoadCompleteEvent event)
// 	{
// 		proxy.loadComplete(event);
// 		proxy.clean();
// 	}
// 
// 	@NetworkCheckHandler
// 	public boolean matchModVersions(final Map<String, String> remoteVersions, final Side side)
// 	{
// 		return side == Side.CLIENT ? remoteVersions.containsKey(MOD_ID) : !remoteVersions.containsKey(MOD_ID) || remoteVersions.get(MOD_ID).equals(MOD_VERSION);
// 	}
// 
// 	public interface IDependency {}
// 
// 	@Retention(RetentionPolicy.RUNTIME)
// 	@Target(ElementType.TYPE)
// 	public @interface Module {}
// 
// 	@Retention(RetentionPolicy.RUNTIME)
// 	@Target(ElementType.TYPE)
// 	public @interface Integration {}
// }


// Path: src/main/java/wanion/unidict/proxy/ClientProxy.java
import net.minecraft.client.util.RecipeBookClient;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import wanion.unidict.UniDict;

package wanion.unidict.proxy;

/*
 * Created by WanionCane(https://github.com/WanionCane).
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */


public class ClientProxy extends CommonProxy {
	@Override
	public void postInit(final FMLPostInitializationEvent event)
	{
		super.postInit(event);

		try {
			RecipeBookClient.rebuildTable();
			UniDict.getLogger().info("Fixed the Recipe Book");
		}
		catch (Exception e){
			UniDict.getLogger().error("Failed to fix Recipe Book");