package sobiohazardous.minestrappolation.extradecor.handler;

import java.util.Random;

import sobiohazardous.minestrappolation.extradecor.lib.EDBlockManager;

import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.village.MerchantRecipe;
import net.minecraft.village.MerchantRecipeList;
import cpw.mods.fml.common.registry.VillagerRegistry.IVillageTradeHandler;

public class EDPriestTradeHandler implements IVillageTradeHandler
{
	@Override
	public void manipulateTradesForVillager(EntityVillager villager, MerchantRecipeList recipes, Random random) 
	{
		recipes.add(new MerchantRecipe(
				new ItemStack(EDBlockManager.sandstoneBricks, 1, 3),
				new ItemStack(Item.emerald, 5)));
		
		recipes.add(new MerchantRecipe(
				new ItemStack(EDBlockManager.sandstoneBricks, 1, 4),
				new ItemStack(Item.emerald, 5)));
	}
}
