Move getOwnerName/UUID to IBindable

Where it should have been to begin with... hehe...

Deprecated methods will be removed after beta
This commit is contained in:
Nick 2016-02-04 00:25:37 -08:00
parent 8c1eaddb97
commit fd16a58b6b
8 changed files with 72 additions and 11 deletions

View file

@ -178,4 +178,16 @@ public class ItemBindable extends Item implements IBindable
{
return true;
}
@Override
public String getOwnerName(ItemStack stack)
{
return stack != null ? NBTHelper.checkNBT(stack).getTagCompound().getString(Constants.NBT.OWNER_NAME) : null;
}
@Override
public String getOwnerUUID(ItemStack stack)
{
return stack != null ? NBTHelper.checkNBT(stack).getTagCompound().getString(Constants.NBT.OWNER_UUID) : null;
}
}