| Constructor and Description |
|---|
NpcMerchant(EntityPlayer customerIn,
ITextComponent nameIn) |
| Modifier and Type | Method and Description |
|---|---|
EntityPlayer |
getCustomer() |
ITextComponent |
getDisplayName()
Get the formatted ChatComponent that will be used for the sender's username in chat
|
BlockPos |
getPos() |
MerchantRecipeList |
getRecipes(EntityPlayer player) |
World |
getWorld() |
void |
setCustomer(EntityPlayer player) |
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 customerIn, ITextComponent nameIn)
public EntityPlayer getCustomer()
getCustomer in interface IMerchantpublic void setCustomer(EntityPlayer player)
setCustomer in interface IMerchantpublic MerchantRecipeList getRecipes(EntityPlayer player)
getRecipes in interface IMerchantpublic void setRecipes(MerchantRecipeList recipeList)
setRecipes in interface IMerchantpublic void useRecipe(MerchantRecipe recipe)
public void verifySellingItem(ItemStack stack)
verifySellingItem in interface IMerchantpublic ITextComponent getDisplayName()
getDisplayName in interface IMerchant