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

18 lines
417 B
Java
Raw Normal View History

package WayofTime.alchemicalWizardry.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.
*
* If false, binding fails.
*/
boolean onBind(EntityPlayer player, ItemStack stack);
}