mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-24 22:04:39 +00:00
Add toString to ItemType
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user