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 IMerchant
public void setCustomer(EntityPlayer player)
setCustomer
in interface IMerchant
public MerchantRecipeList getRecipes(EntityPlayer player)
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 ITextComponent getDisplayName()
getDisplayName
in interface IMerchant