Add toString to ItemType

This commit is contained in:
ljfa-ag committed 2015-06-21 15:18:59 +02:00
1 parent 7b0f3f6e3c
commit a85e1688cf
1 file changed
+6
@@ -79,6 +79,12 @@ public class ItemType
return result;
}
@Override
public String toString()
{
return item.getUnlocalizedName() + "@" + meta;
}
public static ItemType fromStack(ItemStack stack)
{
return new ItemType(stack.getItem(), stack.getItemDamage(), stack.stackTagCompound);