From 4ea6a1052438ef1d8d42057d2a71755383166227 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 14 Apr 2014 12:03:51 +0300 Subject: More updating --- .../darkknight/jewelrycraft/item/ItemGuide.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java') diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java new file mode 100644 index 0000000..b4d300d --- /dev/null +++ b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java @@ -0,0 +1,26 @@ +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; + +public class ItemGuide extends Item +{ + public ItemGuide() + { + super(); + } + + @Override + public ItemStack onItemRightClick(ItemStack stack, World world, EntityPlayer player) + { + if (world.isRemote) + { + player.openGui(JewelrycraftMod.instance, 1, player.worldObj, 0, 0, 0); + } + + return stack; + } +} \ No newline at end of file -- cgit v1.2.3