Constructor and Description |
---|
NpcMerchant(EntityPlayer p_i45817_1_,
IChatComponent p_i45817_2_) |
Modifier and Type | Method and Description |
---|---|
EntityPlayer |
getCustomer() |
IChatComponent |
getDisplayName()
Get the formatted ChatComponent that will be used for the sender's username in chat
|
MerchantRecipeList |
getRecipes(EntityPlayer p_70934_1_) |
void |
setCustomer(EntityPlayer p_70932_1_) |
void |
setRecipes(MerchantRecipeList recipeList) |
void |
useRecipe(MerchantRecipe recipe) |
void |
verifySellingItem(ItemStack stack)
Notifies the merchant of a possible merchantrecipe being fulfilled or not.
|
public NpcMerchant(EntityPlayer p_i45817_1_, IChatComponent p_i45817_2_)
public EntityPlayer getCustomer()
getCustomer
in interface IMerchant
public void setCustomer(EntityPlayer p_70932_1_)
setCustomer
in interface IMerchant
public MerchantRecipeList getRecipes(EntityPlayer p_70934_1_)
getRecipes
in interface IMerchant
public void setRecipes(MerchantRecipeList recipeList)
setRecipes
in interface IMerchant
public void useRecipe(MerchantRecipe recipe)
public void verifySellingItem(ItemStack stack)
verifySellingItem
in interface IMerchant
public IChatComponent getDisplayName()
getDisplayName
in interface IMerchant