// Path: src/main/java/ca/wescook/nutrition/Nutrition.java
// @Mod(
// 	modid = MODID,
// 	name = MODNAME,
// 	version = "@VERSION@",
// 	acceptedMinecraftVersions = FORGE_VERSIONS,
// 	acceptableRemoteVersions = "*"
// )
// 
// public class Nutrition {
// 	public static final String MODID = "nutrition";
// 	public static final String MODNAME = "Nutrition";
// 	public static final String FORGE_VERSIONS = "[1.12,1.13)";
// 
// 	// Create instance of mod
// 	@Mod.Instance
// 	public static Nutrition instance;
// 
// 	// Create instance of proxy
// 	// This will vary depending on if the client or server is running
// 	@SidedProxy(
// 		clientSide="ca.wescook.nutrition.proxy.ClientProxy",
// 		serverSide="ca.wescook.nutrition.proxy.ServerProxy"
// 	)
// 	public static IProxy proxy;
// 
// 	// Events
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event) {
// 		Config.registerConfigs(event.getModConfigurationDirectory()); // Load Config file
// 		ModPacketHandler.registerMessages(); // Register network messages
// 		CapabilityManager.register(); // Register capability
// 
// 		ModPotions.createPotions(); // Register custom potions
// 		MinecraftForge.EVENT_BUS.register(new EventRegistry()); // Register custom potions
// 		MinecraftForge.EVENT_BUS.register(new EventPlayerJoinWorld()); // Attach capability to player
// 		MinecraftForge.EVENT_BUS.register(new EventPlayerDeath()); // Player death and warping
// 		MinecraftForge.EVENT_BUS.register(new EventEatFood()); // Register use item event
// 		MinecraftForge.EVENT_BUS.register(new EventWorldTick()); // Register update event for nutrition decay and potion effects
// 
// 		Nutrition.proxy.preInit(event);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event) {
// 		NetworkRegistry.INSTANCE.registerGuiHandler(Nutrition.instance, new ModGuiHandler()); // Register GUI handler
// 
// 		Nutrition.proxy.init(event);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event) {
// 		DataImporter.reload(); // Load nutrients and effects
// 
// 		Nutrition.proxy.postInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void serverStart(FMLServerStartingEvent event) {
// 		event.registerServerCommand(new ChatCommand());
// 	}
// }


import ca.wescook.nutrition.Nutrition;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiLabel;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.ResourceLocation;
package ca.wescook.nutrition.gui;


// Similar to GuiScreen, but draws a dynamic Minecraft border around any size
public abstract class GuiScreenDynamic extends GuiScreen {

	// Container size
	private int guiWidth = 0;
	private int guiHeight = 0;

	// Offsets
	public int top = 0;
	public int left = 0;
	public int right = 0;
	public int bottom = 0;

	// Container info
// Path: src/main/java/ca/wescook/nutrition/Nutrition.java
// @Mod(
// 	modid = MODID,
// 	name = MODNAME,
// 	version = "@VERSION@",
// 	acceptedMinecraftVersions = FORGE_VERSIONS,
// 	acceptableRemoteVersions = "*"
// )
// 
// public class Nutrition {
// 	public static final String MODID = "nutrition";
// 	public static final String MODNAME = "Nutrition";
// 	public static final String FORGE_VERSIONS = "[1.12,1.13)";
// 
// 	// Create instance of mod
// 	@Mod.Instance
// 	public static Nutrition instance;
// 
// 	// Create instance of proxy
// 	// This will vary depending on if the client or server is running
// 	@SidedProxy(
// 		clientSide="ca.wescook.nutrition.proxy.ClientProxy",
// 		serverSide="ca.wescook.nutrition.proxy.ServerProxy"
// 	)
// 	public static IProxy proxy;
// 
// 	// Events
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent event) {
// 		Config.registerConfigs(event.getModConfigurationDirectory()); // Load Config file
// 		ModPacketHandler.registerMessages(); // Register network messages
// 		CapabilityManager.register(); // Register capability
// 
// 		ModPotions.createPotions(); // Register custom potions
// 		MinecraftForge.EVENT_BUS.register(new EventRegistry()); // Register custom potions
// 		MinecraftForge.EVENT_BUS.register(new EventPlayerJoinWorld()); // Attach capability to player
// 		MinecraftForge.EVENT_BUS.register(new EventPlayerDeath()); // Player death and warping
// 		MinecraftForge.EVENT_BUS.register(new EventEatFood()); // Register use item event
// 		MinecraftForge.EVENT_BUS.register(new EventWorldTick()); // Register update event for nutrition decay and potion effects
// 
// 		Nutrition.proxy.preInit(event);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent event) {
// 		NetworkRegistry.INSTANCE.registerGuiHandler(Nutrition.instance, new ModGuiHandler()); // Register GUI handler
// 
// 		Nutrition.proxy.init(event);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent event) {
// 		DataImporter.reload(); // Load nutrients and effects
// 
// 		Nutrition.proxy.postInit(event);
// 	}
// 
// 	@Mod.EventHandler
// 	public void serverStart(FMLServerStartingEvent event) {
// 		event.registerServerCommand(new ChatCommand());
// 	}
// }


// Path: src/main/java/ca/wescook/nutrition/gui/GuiScreenDynamic.java
import ca.wescook.nutrition.Nutrition;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiLabel;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.util.ResourceLocation;

package ca.wescook.nutrition.gui;


// Similar to GuiScreen, but draws a dynamic Minecraft border around any size
public abstract class GuiScreenDynamic extends GuiScreen {

	// Container size
	private int guiWidth = 0;
	private int guiHeight = 0;

	// Offsets
	public int top = 0;
	public int left = 0;
	public int right = 0;
	public int bottom = 0;

	// Container info
	private final ResourceLocation GUI_BORDERS = new ResourceLocation(Nutrition.MODID, "textures/gui/gui.png");