summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/item/ItemGuide.java
diff options
context:
space:
mode:
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemGuide.java')
-rw-r--r--common/darkknight/jewelrycraft/item/ItemGuide.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemGuide.java b/common/darkknight/jewelrycraft/item/ItemGuide.java
new file mode 100644
index 0000000..7decf67
--- /dev/null
+++ b/common/darkknight/jewelrycraft/item/ItemGuide.java
@@ -0,0 +1,28 @@
+package darkknight.jewelrycraft.item;
+
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.Item;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
+import darkknight.jewelrycraft.JewelrycraftMod;
+import darkknight.jewelrycraft.container.GuiHandler;
+
+public class ItemGuide extends Item
+{
+
+ public ItemGuide(int id)
+ {
+ super(id);
+ }
+
+ @Override
+ public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player)
+ {
+ if (world.isRemote)
+ {
+ player.openGui(JewelrycraftMod.instance, GuiHandler.GuiId.guide.ordinal(), player.worldObj, 0, 0, 0);
+ }
+
+ return stack;
+ }
+} \ No newline at end of file