package squeek.veganoption.integration.stillhungry;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import squeek.veganoption.content.registry.CompostRegistry;
import squeek.veganoption.content.registry.CompostRegistry.FoodSpecifier;
import squeek.veganoption.integration.IntegratorBase;

public class StillHungry extends IntegratorBase
{
	@Override
	public void init()
	{
		super.init();

		// basically blacklist everything except the various raw crops
		CompostRegistry.blacklist(new FoodSpecifier()
		{
			private final Set<String> itemNameWhitelist = new HashSet<String>(
					Arrays.asList(
									fullItemName("StillHungry_strawberry"),
									fullItemName("StillHungry_grapes")
							)
					);

			@Override
			public boolean matches(ItemStack itemStack)
			{
				String itemName = Item.itemRegistry.getNameForObject(itemStack.getItem());

				if (!itemName.startsWith(modID))
					return false;

				return !itemNameWhitelist.contains(itemName);
			}
		});
	}
}

@@ -188,16 +188,114 @@
 mStack;%0A
+import net.minecraftforge.oredict.OreDictionary;%0Aimport squeek.veganoption.content.ContentHelper;%0A
 import s
@@ -525,16 +525,510 @@
 rBase%0A%7B%0A
+%09@Override%0A%09public void oredict()%0A%09%7B%0A%09%09if (getItem(%22StillHungry_rice%22) != null)%0A%09%09%09OreDictionary.registerOre(ContentHelper.riceOreDict, new ItemStack(getItem(%22StillHungry_rice%22)));%0A%09%09if (getItem(%22StillHungry_oil%22) != null)%0A%09%09%09OreDictionary.registerOre(ContentHelper.vegetableOilOreDict, new ItemStack(getItem(%22StillHungry_oil%22)));%0A%09%09if (getItem(%22StillHungry_grapeSeed%22) != null)%0A%09%09%09OreDictionary.registerOre(ContentHelper.grapeSeedOreDict, new ItemStack(getItem(%22StillHungry_grapeSeed%22)));%0A%09%7D%0A%0A
 %09@Overri

Add integration with Still Hungry!'s rice, oil, grape seeds