package net.darkmorford.btweagles.villager;

import net.darkmorford.btweagles.item.ModItems;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fml.common.registry.VillagerRegistry;

public class ModVillagers
{
	public static final VillagerRegistry.VillagerProfession professionKrog = new VillagerRegistry.VillagerProfession("btweagles:professionKrog",
			"btweagles:textures/entity/villager/krog.png",
			"minecraft:textures/entity/villager/zombie_villager.png");

	protected static final VillagerRegistry.VillagerCareer careerKrog = new VillagerRegistry.VillagerCareer(professionKrog, "careerKrog");

	public static final VillagerRegistry.VillagerProfession professionTorg = new VillagerRegistry.VillagerProfession("btweagles:profession_torg",
			"btweagles:textures/entity/villager/torg.png",
			"minecraft:textures/entity/villager/zombie_villager.png");

	protected static final VillagerRegistry.VillagerCareer careerTorg = new VillagerRegistry.VillagerCareer(professionTorg, "careerTorg");

	public static void registerVillagerTrades()
	{
		careerKrog.addTrade(1, new VillagerTradeItemForItem(new ItemStack(ModItems.shiny_stone), new EntityVillager.PriceInfo(1, 1),
				new ItemStack(Items.LEATHER), new EntityVillager.PriceInfo(2, 2)));

		careerTorg.addTrade(1, new VillagerTradeItemForItem(new ItemStack(Items.BEEF), new EntityVillager.PriceInfo(1, 3),
				new ItemStack(Blocks.SAPLING, 1, 3), new EntityVillager.PriceInfo(1, 3)));

		NBTTagCompound parrotTag = new NBTTagCompound();
		parrotTag.setString("id", "minecraft:parrot");
		ItemStack parrotEgg = new ItemStack(Items.SPAWN_EGG, 1);
		parrotEgg.setTagInfo("EntityTag", parrotTag);

		careerTorg.addTrade(2, new VillagerTradeItemForItem(new ItemStack(Items.PORKCHOP), new EntityVillager.PriceInfo(2, 4),
				parrotEgg, new EntityVillager.PriceInfo(1, 1)));
	}
}

@@ -38,16 +38,63 @@
 lager;%0A%0A
+import com.pam.harvestcraft.item.ItemRegistry;%0A
 import n
@@ -330,16 +330,61 @@
 mpound;%0A
+import net.minecraftforge.fml.common.Loader;%0A
 import n
@@ -1902,24 +1902,71 @@
 arrotTag);%0A%0A
+%09%09if (Loader.isModLoaded(%22harvestcraft%22))%0A%09%09%7B%0A%09
 %09%09careerTorg
@@ -2029,18 +2029,30 @@
 Item
-s.PORKCHOP
+Registry.honeycombItem
 ), n
@@ -2083,15 +2083,18 @@
 nfo(
-2
+30
 , 4
+0
 ),%0A
+%09
 %09%09%09%09
@@ -2142,13 +2142,17 @@
 , 1)));%0A
+%09%09%7D%0A
 %09%7D%0A%7D%0A

Make Torg's parrot eggs much more expensive.