| Modifier and Type | Field and Description |
|---|---|
private EntityPlayer |
customer |
private InventoryMerchant |
merchantInventory |
private ITextComponent |
name |
private MerchantRecipeList |
recipeList |
| Constructor and Description |
|---|
NpcMerchant(EntityPlayer customerIn,
ITextComponent nameIn) |
| Modifier and Type | Method and Description |
|---|---|
EntityPlayer |
getCustomer() |
ITextComponent |
getDisplayName() |
BlockPos |
getPos() |
MerchantRecipeList |
getRecipes(EntityPlayer player) |
World |
getWorld() |
void |
setCustomer(EntityPlayer player) |
void |
setRecipes(MerchantRecipeList recipeList) |
void |
useRecipe(MerchantRecipe recipe) |
void |
verifySellingItem(ItemStack stack) |
private final InventoryMerchant merchantInventory
private final EntityPlayer customer
private MerchantRecipeList recipeList
private final ITextComponent name
public NpcMerchant(EntityPlayer customerIn, ITextComponent nameIn)
@Nullable public EntityPlayer getCustomer()
getCustomer in interface IMerchantpublic void setCustomer(@Nullable
EntityPlayer player)
setCustomer in interface IMerchant@Nullable public MerchantRecipeList getRecipes(EntityPlayer player)
getRecipes in interface IMerchantpublic void setRecipes(@Nullable
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