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:
parent
8c1eaddb97
commit
fd16a58b6b
8 changed files with 72 additions and 11 deletions
|
@ -44,14 +44,19 @@ public class BindableHelper
|
|||
stack.getTagCompound().setString(Constants.NBT.OWNER_UUID, ownerUUID);
|
||||
}
|
||||
|
||||
// Everything below is to be removed.
|
||||
|
||||
/**
|
||||
* Used to safely obtain the username of the ItemStack's owner
|
||||
* Deprecated.
|
||||
*
|
||||
* Built into {@link IBindable} now.
|
||||
*
|
||||
* @param stack
|
||||
* - The ItemStack to check the owner of
|
||||
*
|
||||
* @return - The username of the ItemStack's owner
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getOwnerName(ItemStack stack)
|
||||
{
|
||||
stack = NBTHelper.checkNBT(stack);
|
||||
|
@ -60,13 +65,16 @@ public class BindableHelper
|
|||
}
|
||||
|
||||
/**
|
||||
* Used to safely obtain the UUID of the ItemStack's owner
|
||||
* Deprecated.
|
||||
*
|
||||
* Built into {@link IBindable} now.
|
||||
*
|
||||
* @param stack
|
||||
* - The ItemStack to check the owner of
|
||||
*
|
||||
* @return - The UUID of the ItemStack's owner
|
||||
*/
|
||||
@Deprecated
|
||||
public static String getOwnerUUID(ItemStack stack)
|
||||
{
|
||||
stack = NBTHelper.checkNBT(stack);
|
||||
|
@ -74,8 +82,6 @@ public class BindableHelper
|
|||
return stack.getTagCompound().getString(Constants.NBT.OWNER_UUID);
|
||||
}
|
||||
|
||||
// Everything below is to be removed.
|
||||
|
||||
/**
|
||||
* Deprecated.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue