BloodMagic/src/main/java/WayofTime/bloodmagic/api/iface/IBindable.java

23 lines
572 B
Java
Raw Normal View History

package WayofTime.bloodmagic.api.iface;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* Implement this interface on any Item that can be bound to a player.
*/
public interface IBindable
{
/**
* 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
2016-01-01 18:52:42 +00:00
* @param stack
* - The ItemStack to attempt binding
*
2016-01-01 18:52:42 +00:00
* @return If binding was successful.
*/
boolean onBind(EntityPlayer player, ItemStack stack);
}