package org.allaymc.api.entity.component;

import org.allaymc.api.item.ItemStack;

/**
 * Component for animal entities that define their breeding items.
 *
 * @author daoge_cmd
 */
public interface EntityAnimalComponent extends EntityComponent {

    /**
     * Check if the given item is a breeding item for this animal.
     *
     * @param item the item to check
     * @return {@code true} if this item can be used to breed this animal
     */
    boolean isBreedingItem(ItemStack item);
}
