2015-11-02 20:39:44 +00:00
|
|
|
package WayofTime.bloodmagic.api.iface;
|
2015-10-30 03:22:14 +00:00
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implement this interface on any Item that can be bound to a player.
|
|
|
|
*/
|
2015-12-30 20:34:40 +00:00
|
|
|
public interface IBindable
|
|
|
|
{
|
2015-10-30 03:22:14 +00:00
|
|
|
/**
|
|
|
|
* Called when the player attempts to bind the item.
|
2016-01-01 18:52:42 +00:00
|
|
|
*
|
|
|
|
* @param player
|
|
|
|
* - The Player attempting to bind the item
|
|
|
|
* @param stack
|
|
|
|
* - The ItemStack to attempt binding
|
|
|
|
*
|
|
|
|
* @return If binding was successful.
|
2015-10-30 03:22:14 +00:00
|
|
|
*/
|
|
|
|
boolean onBind(EntityPlayer player, ItemStack stack);
|
|
|
|
}
|