From f4d6af6c84bce89c6189f9d9c821e5ec58eacdfa Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 16 Dec 2013 20:45:27 +0200 Subject: just a nit of nbt thingy --- common/darkknight/jewelrycraft/item/ItemRing.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common') 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; } /** -- cgit v1.2.3