summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/item/ItemGuide.java
blob: 62f645e1a3d5f4b5aa14bebd9629649fa5a29ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
    }
}