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