blob: 481126f076a586786379c9a4cdfbedc93a6bc4e0 (
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
27
28
29
30
31
|
package darkknight.jewelrycraft.item;
import java.util.List;
import darkknight.jewelrycraft.JewelrycraftMod;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.world.World;
public class ItemJewelryModifier extends Item {
public ItemJewelryModifier() {
super();
}
@Override
public ItemStack onItemRightClick(ItemStack stack, World world,
EntityPlayer player) {
if (!world.isRemote && player.capabilities.isCreativeMode)
player.openGui(JewelrycraftMod.instance, 3, world,
0, 0, 0);
return stack;
}
@Override
public void addInformation(ItemStack stack, EntityPlayer player,
List list, boolean par4) {
list.add(EnumChatFormatting.GRAY + "Creative Only");
}
}
|