// Path: java/net/gtn/dimensionalpocket/client/gui/components/GuiArrow.java
// @SideOnly(Side.CLIENT)
// public class GuiArrow extends GuiTexturedButton<GuiArrow> {
// 
// 	public GuiArrow(int x, int y) {
// 		super(x, y, 0, 180, 18, 10);
// 	}
// 
// 	@Override
// 	public int getTextureXShift(int pass) {
// 		return 23 * pass;
// 	}
// }
// 
// Path: java/net/gtn/dimensionalpocket/client/gui/components/GuiItemStack.java
// public class GuiItemStack extends GuiWidget<GuiItemStack> {
// 
// 	private ItemStack itemStack = new ItemStack(Blocks.stone);
// 
// 	public GuiItemStack(ItemStack itemStack, int x, int y) {
// 		super(x, y, 19, 19);
// 		this.itemStack = itemStack;
// 	}
// 
// 	public void setItemStack(ItemStack itemStack) {
// 		this.itemStack = itemStack;
// 	}
// 
// 	public ItemStack getItemStack() {
// 		return itemStack;
// 	}
// 
// 	@Override
// 	public boolean shouldPlaySoundOnClick() {
// 		return false;
// 	}
// 
// 	@Override
// 	public void renderBackground(int mouseX, int mouseY) {
// 		RenderUtils.renderItemStackInGUI(itemStack, fontRendererObj, itemRender, x + 2, y + 2, 100.0F);
// 	}
// 
// 	@Override
// 	public void renderForeground(int mouseX, int mouseY) {
// 		if (canClick(mouseX, mouseY)) {
// 			renderToolTip(itemStack, mouseX, mouseY);
// 		}
// 	}
// }
// 
// Path: java/net/gtn/dimensionalpocket/client/utils/GuiSheet.java
// @SideOnly(Side.CLIENT)
// public class GuiSheet {
// 
// 	private static final String GUI_SHEET_LOCATION = "textures/gui/";
// 
// 	public static final ResourceLocation GUI_INFO_BOOK = getResource("guideDP");
// 
// 	private static ResourceLocation getResource(String loc) {
// 		return new ResourceLocation(Reference.MOD_ID.toLowerCase(), GUI_SHEET_LOCATION + loc + ".png");
// 	}
// 
// }


import static org.lwjgl.opengl.GL11.*;
import net.gtn.dimensionalpocket.oc.client.gui.GuiContainerAbstract;
import net.gtn.dimensionalpocket.oc.client.gui.components.GuiWidget;
import net.gtn.dimensionalpocket.oc.client.lib.Colour;
import net.gtn.dimensionalpocket.client.ClientProxy;
import net.gtn.dimensionalpocket.client.gui.components.GuiArrow;
import net.gtn.dimensionalpocket.client.gui.components.GuiItemStack;
import net.gtn.dimensionalpocket.client.utils.GuiSheet;
import net.gtn.dimensionalpocket.client.utils.RecipeHelper;
import net.gtn.dimensionalpocket.common.core.utils.DPLogger;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
		String craftingRecipePocket = StatCollector.translateToLocal("info.page.recipe.block.id");
		String craftingRecipeEndCrystal = StatCollector.translateToLocal("info.page.recipe.endCrystal.id");
		String craftingRecipeNetherCrystal = StatCollector.translateToLocal("info.page.recipe.netherCrystal.id");
		try {
			MAX_PAGE = Integer.parseInt(num);
			CRAFTING_RECIPE_POCKET = Integer.parseInt(craftingRecipePocket);
			CRAFTING_RECIPE_END_CRYSTAL = Integer.parseInt(craftingRecipeEndCrystal);
			CRAFTING_RECIPE_NETHER_CRYSTAL = Integer.parseInt(craftingRecipeNetherCrystal);
		} catch (NumberFormatException exception) {
			DPLogger.severe("Error in current .lang file. Please make sure that all page numbers are proper numbers.");
			MAX_PAGE = 9;
			CRAFTING_RECIPE_END_CRYSTAL = 5;
			CRAFTING_RECIPE_NETHER_CRYSTAL = 6;
			CRAFTING_RECIPE_POCKET = 7;
		}
	}

	@Override
	public void initGui() {
		super.initGui();

		initArrows();
		int index = 0;
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				itemStackArray[index++] = new GuiItemStack(null, guiLeft + 51 + (j * 18), guiTop + 36 + (i * 18));
			}
		}
		itemStackArray[9] = new GuiItemStack(null, guiLeft + 69, guiTop + 124);

// Path: java/net/gtn/dimensionalpocket/client/gui/components/GuiArrow.java
// @SideOnly(Side.CLIENT)
// public class GuiArrow extends GuiTexturedButton<GuiArrow> {
// 
// 	public GuiArrow(int x, int y) {
// 		super(x, y, 0, 180, 18, 10);
// 	}
// 
// 	@Override
// 	public int getTextureXShift(int pass) {
// 		return 23 * pass;
// 	}
// }
// 
// Path: java/net/gtn/dimensionalpocket/client/gui/components/GuiItemStack.java
// public class GuiItemStack extends GuiWidget<GuiItemStack> {
// 
// 	private ItemStack itemStack = new ItemStack(Blocks.stone);
// 
// 	public GuiItemStack(ItemStack itemStack, int x, int y) {
// 		super(x, y, 19, 19);
// 		this.itemStack = itemStack;
// 	}
// 
// 	public void setItemStack(ItemStack itemStack) {
// 		this.itemStack = itemStack;
// 	}
// 
// 	public ItemStack getItemStack() {
// 		return itemStack;
// 	}
// 
// 	@Override
// 	public boolean shouldPlaySoundOnClick() {
// 		return false;
// 	}
// 
// 	@Override
// 	public void renderBackground(int mouseX, int mouseY) {
// 		RenderUtils.renderItemStackInGUI(itemStack, fontRendererObj, itemRender, x + 2, y + 2, 100.0F);
// 	}
// 
// 	@Override
// 	public void renderForeground(int mouseX, int mouseY) {
// 		if (canClick(mouseX, mouseY)) {
// 			renderToolTip(itemStack, mouseX, mouseY);
// 		}
// 	}
// }
// 
// Path: java/net/gtn/dimensionalpocket/client/utils/GuiSheet.java
// @SideOnly(Side.CLIENT)
// public class GuiSheet {
// 
// 	private static final String GUI_SHEET_LOCATION = "textures/gui/";
// 
// 	public static final ResourceLocation GUI_INFO_BOOK = getResource("guideDP");
// 
// 	private static ResourceLocation getResource(String loc) {
// 		return new ResourceLocation(Reference.MOD_ID.toLowerCase(), GUI_SHEET_LOCATION + loc + ".png");
// 	}
// 
// }


// Path: java/net/gtn/dimensionalpocket/client/gui/GuiInfoBook.java
import static org.lwjgl.opengl.GL11.*;
import net.gtn.dimensionalpocket.oc.client.gui.GuiContainerAbstract;
import net.gtn.dimensionalpocket.oc.client.gui.components.GuiWidget;
import net.gtn.dimensionalpocket.oc.client.lib.Colour;
import net.gtn.dimensionalpocket.client.ClientProxy;
import net.gtn.dimensionalpocket.client.gui.components.GuiArrow;
import net.gtn.dimensionalpocket.client.gui.components.GuiItemStack;
import net.gtn.dimensionalpocket.client.utils.GuiSheet;
import net.gtn.dimensionalpocket.client.utils.RecipeHelper;
import net.gtn.dimensionalpocket.common.core.utils.DPLogger;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

		String craftingRecipePocket = StatCollector.translateToLocal("info.page.recipe.block.id");
		String craftingRecipeEndCrystal = StatCollector.translateToLocal("info.page.recipe.endCrystal.id");
		String craftingRecipeNetherCrystal = StatCollector.translateToLocal("info.page.recipe.netherCrystal.id");
		try {
			MAX_PAGE = Integer.parseInt(num);
			CRAFTING_RECIPE_POCKET = Integer.parseInt(craftingRecipePocket);
			CRAFTING_RECIPE_END_CRYSTAL = Integer.parseInt(craftingRecipeEndCrystal);
			CRAFTING_RECIPE_NETHER_CRYSTAL = Integer.parseInt(craftingRecipeNetherCrystal);
		} catch (NumberFormatException exception) {
			DPLogger.severe("Error in current .lang file. Please make sure that all page numbers are proper numbers.");
			MAX_PAGE = 9;
			CRAFTING_RECIPE_END_CRYSTAL = 5;
			CRAFTING_RECIPE_NETHER_CRYSTAL = 6;
			CRAFTING_RECIPE_POCKET = 7;
		}
	}

	@Override
	public void initGui() {
		super.initGui();

		initArrows();
		int index = 0;
		for (int i = 0; i < 3; i++) {
			for (int j = 0; j < 3; j++) {
				itemStackArray[index++] = new GuiItemStack(null, guiLeft + 51 + (j * 18), guiTop + 36 + (i * 18));
			}
		}
		itemStackArray[9] = new GuiItemStack(null, guiLeft + 69, guiTop + 124);

		for (GuiItemStack gui : itemStackArray) {