package xyz.brassgoggledcoders.steamagerevolution.modules.guide;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import xyz.brassgoggledcoders.boilerplate.client.guis.IOpenableGUI;
import xyz.brassgoggledcoders.boilerplate.client.manual.GuiLexicon;
import xyz.brassgoggledcoders.boilerplate.items.ItemBase;
import xyz.brassgoggledcoders.boilerplate.manual.ILexicon;
import xyz.brassgoggledcoders.steamagerevolution.SteamAgeRevolution;

public class ItemManual extends ItemBase implements ILexicon, IOpenableGUI {

	public ItemManual() {
		super("manual");
		setMaxStackSize(1);
	}
	
	@Override
	public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand)
	{
		if (world.isRemote)
		{
			player.openGui(SteamAgeRevolution.instance, 0, world, 0, 0, 0);
			return new ActionResult(EnumActionResult.SUCCESS, stack);
		}
		return new ActionResult(EnumActionResult.FAIL, stack);
	}
	
	@Override
	public Object getClientGuiElement(int ID, EntityPlayer player, World world, BlockPos blockPos) {
		//TODO
		//SteamAgeRevolution.getProxy().setLexiconStack(player.getCurrentEquippedItem());
		return GuiLexicon.currentOpenLexicon;
	}

	@Override
	public Object getServerGuiElement(int ID, EntityPlayer player, World world, BlockPos blockPos) {
		return null;
	}

}

@@ -84,32 +84,111 @@
 aft.
-entity.player.EntityPlay
+client.gui.Gui;%0Aimport net.minecraft.entity.player.EntityPlayer;%0Aimport net.minecraft.inventory.Contain
 er;%0A
@@ -816,17 +816,17 @@
 nableGUI
- 
+%0A
 %7B%0A%0A%09publ
@@ -840,17 +840,18 @@
 Manual()
- 
+%0A%09
 %7B%0A%09%09supe
@@ -884,25 +884,24 @@
 Size(1);%0A%09%7D%0A
-%09
 %0A%09@Override%0A
@@ -1022,17 +1022,16 @@
 %0A%09%7B%0A%09%09if
- 
 (world.i
@@ -1128,32 +1128,43 @@
 new ActionResult
+%3CItemStack%3E
 (EnumActionResul
@@ -1211,16 +1211,27 @@
 onResult
+%3CItemStack%3E
 (EnumAct
@@ -1257,17 +1257,16 @@
 ck);%0A%09%7D%0A
-%09
 %0A%09@Overr
@@ -1273,30 +1273,27 @@
 ide%0A%09public 
-Object
+Gui
  getClientGu
@@ -1365,15 +1365,17 @@
 Pos)
- 
+%0A%09
 %7B%0A%09%09//
+ 
 TODO
@@ -1379,16 +1379,17 @@
 ODO%0A%09%09//
+ 
 SteamAge
@@ -1527,14 +1527,17 @@
 lic 
-Object
+Container
  get
@@ -1613,17 +1613,18 @@
 lockPos)
- 
+%0A%09
 %7B%0A%09%09retu

Fix manual compilation error