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
|
@ -3,11 +3,38 @@ package WayofTime.bloodmagic.api.iface;
|
|||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Implement this interface on any Item that can be bound to a player.
|
||||
*/
|
||||
public interface IBindable
|
||||
{
|
||||
/**
|
||||
* Gets the username of the Item's owner. Usually for display,
|
||||
* such as in the tooltip.
|
||||
*
|
||||
* If the item is not bound, this will be null.
|
||||
*
|
||||
* @param stack
|
||||
* - The owned ItemStack
|
||||
*
|
||||
* @return - The username of the Item's owner
|
||||
*/
|
||||
String getOwnerName(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Gets the UUID of the Item's owner.
|
||||
*
|
||||
* If the item is not bound, this will be null.
|
||||
*
|
||||
* @param stack
|
||||
* - The owned ItemStack
|
||||
*
|
||||
* @return - The UUID of the Item's owner
|
||||
*/
|
||||
String getOwnerUUID(ItemStack stack);
|
||||
|
||||
/**
|
||||
* Called when the player attempts to bind the item.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue