diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-03-30 22:59:36 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-03-30 22:59:36 +0300 |
| commit | 9d0d74a3ba0aeca9f1130d1228fa4b9ef08d19d6 (patch) | |
| tree | 86c2e6f3fc80cb4473b9044bdc00d0a2a082ad1b /common/darkknight/jewelrycraft/item/ItemGuide.java | |
| parent | 5fce447142b3c0f4a214ca7eb208d9e5c25e6377 (diff) | |
Added a gui! Yaaay!
Diffstat (limited to 'common/darkknight/jewelrycraft/item/ItemGuide.java')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemGuide.java | 28 |
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 |
