package squeek.veganoption.integration.forestry;

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 ExtraTrees extends IntegratorBase
{
	@Override
	public void init()
	{
		super.init();

		CompostRegistry.blacklist(new FoodSpecifier()
		{
			private final Set<String> itemNameBlacklist = new HashSet<String>(
					Arrays.asList(
							fullItemName("drink")
							)
					);

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

@@ -185,16 +185,114 @@
 mStack;%0A
+import net.minecraftforge.oredict.OreDictionary;%0Aimport squeek.veganoption.content.ContentHelper;%0A
 import s
@@ -521,16 +521,999 @@
 rBase%0A%7B%0A
+%09@Override%0A%09public void oredict()%0A%09%7B%0A%09%09Item foodItem = getItem(%22food%22);%0A%09%09if (foodItem != null)%0A%09%09%7B%0A%09%09%09// coconut%0A%09%09%09ItemStack coconut = new ItemStack(foodItem, 1, 50);%0A%09%09%09OreDictionary.registerOre(ContentHelper.coconutOreDict, coconut);%0A%0A%09%09%09// nuts%0A%09%09%09ItemStack pecan = new ItemStack(foodItem, 1, 27);%0A%09%09%09ItemStack brazilNut = new ItemStack(foodItem, 1, 31);%0A%09%09%09ItemStack beechNut = new ItemStack(foodItem, 1, 26);%0A%09%09%09ItemStack butterNut = new ItemStack(foodItem, 1, 25);%0A%09%09%09ItemStack hazelNut = new ItemStack(foodItem, 1, 24);%0A%09%09%09ItemStack almond = new ItemStack(foodItem, 1, 9);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, pecan);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, brazilNut);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, beechNut);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, butterNut);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, hazelNut);%0A%09%09%09OreDictionary.registerOre(ContentHelper.nutOreDict, almond);%0A%09%09%7D%0A%09%7D%0A%0A
 %09@Overri

Add better integration with ExtraTrees crops (nuts/coconut)