2015-11-02 12:39:44 -08:00
|
|
|
package WayofTime.bloodmagic.api.iface;
|
2015-10-29 20:22:14 -07: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 15:34:40 -05:00
|
|
|
public interface IBindable
|
|
|
|
{
|
2015-10-29 20:22:14 -07:00
|
|
|
/**
|
|
|
|
* Called when the player attempts to bind the item.
|
2016-01-01 10:52:42 -08:00
|
|
|
*
|
|
|
|
* @param player
|
|
|
|
* - The Player attempting to bind the item
|
|
|
|
* @param stack
|
|
|
|
* - The ItemStack to attempt binding
|
|
|
|
*
|
|
|
|
* @return If binding was successful.
|
2015-10-29 20:22:14 -07:00
|
|
|
*/
|
|
|
|
boolean onBind(EntityPlayer player, ItemStack stack);
|
|
|
|
}
|