    001package net.minecraft.entity;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import net.minecraft.entity.player.EntityPlayer;
    006import net.minecraft.inventory.InventoryMerchant;
    007import net.minecraft.village.MerchantRecipe;
    008import net.minecraft.village.MerchantRecipeList;
    009
    010@SideOnly(Side.CLIENT)
    011public class NpcMerchant implements IMerchant
    012{
    013    /** Instance of Merchants Inventory. */
    014    private InventoryMerchant theMerchantInventory;
    015
    016    /** This merchant's current player customer. */
    017    private EntityPlayer customer;
    018
    019    /** The MerchantRecipeList instance. */
    020    private MerchantRecipeList recipeList;
    021
    022    public NpcMerchant(EntityPlayer par1EntityPlayer)
    023    {
    024        this.customer = par1EntityPlayer;
    025        this.theMerchantInventory = new InventoryMerchant(par1EntityPlayer, this);
    026    }
    027
    028    public EntityPlayer getCustomer()
    029    {
    030        return this.customer;
    031    }
    032
    033    public void setCustomer(EntityPlayer par1EntityPlayer) {}
    034
    035    public MerchantRecipeList getRecipes(EntityPlayer par1EntityPlayer)
    036    {
    037        return this.recipeList;
    038    }
    039
    040    public void setRecipes(MerchantRecipeList par1MerchantRecipeList)
    041    {
    042        this.recipeList = par1MerchantRecipeList;
    043    }
    044
    045    public void useRecipe(MerchantRecipe par1MerchantRecipe) {}
    046}