diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-16 20:45:27 +0200 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2013-12-16 20:45:27 +0200 |
| commit | f4d6af6c84bce89c6189f9d9c821e5ec58eacdfa (patch) | |
| tree | ca1344d9962c3a55e1c2cc184a6102ea141a9186 /common | |
| parent | 611c030450614adcb87d5e2af784712e504eeae4 (diff) | |
just a nit of nbt thingy
Diffstat (limited to 'common')
| -rw-r--r-- | common/darkknight/jewelrycraft/item/ItemRing.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/darkknight/jewelrycraft/item/ItemRing.java b/common/darkknight/jewelrycraft/item/ItemRing.java index d1bf2e0..17f961d 100644 --- a/common/darkknight/jewelrycraft/item/ItemRing.java +++ b/common/darkknight/jewelrycraft/item/ItemRing.java @@ -30,12 +30,19 @@ public class ItemRing extends ItemBase this(par1, ingot); this.effect = effect; } + NBTTagCompound tag = new NBTTagCompound(); + + public String getMetal(ItemStack stack) + { + return tag.getString("ingot"); + } public static void addMetal(ItemStack item, String metal) { NBTTagCompound tag = new NBTTagCompound(); item.setTagCompound(tag); tag.setString("ingot", metal); + ingot = metal; } /** |
