Add toString to ItemType

This commit is contained in:
ljfa-ag 2015-06-21 15:18:59 +02:00
parent 7b0f3f6e3c
commit a85e1688cf

View file

@ -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);