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) |
public NpcMerchant(EntityPlayer customerIn, ITextComponent nameIn)
public EntityPlayer getCustomer()
getCustomer
in interface IMerchant
public void setCustomer(EntityPlayer player)
setCustomer
in interface IMerchant
@Nullable public MerchantRecipeList getRecipes(EntityPlayer player)
getRecipes
in interface IMerchant
public void setRecipes(@Nullable 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