diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-14 12:03:51 +0300 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2014-04-14 12:03:51 +0300 |
| commit | 4ea6a1052438ef1d8d42057d2a71755383166227 (patch) | |
| tree | 94def1bf66c59583d8e8aa7e3d1117a6f5b56b62 /eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java | |
| parent | 1a692ab45df3d88a6cc247cc9f4c0a41c7715264 (diff) | |
More updating
Diffstat (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java')
| -rw-r--r-- | eclipse/Jewelrycraft/common/darkknight/jewelrycraft/item/ItemGuide.java | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
