public class InventoryMerchant extends java.lang.Object implements IInventory
| Constructor and Description |
|---|
InventoryMerchant(EntityPlayer par1EntityPlayer,
IMerchant par2IMerchant) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeInventory() |
ItemStack |
decrStackSize(int par1,
int par2) |
MerchantRecipe |
getCurrentRecipe() |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int par1) |
ItemStack |
getStackInSlotOnClosing(int par1) |
boolean |
hasCustomInventoryName() |
boolean |
isItemValidForSlot(int par1,
ItemStack par2ItemStack) |
boolean |
isUseableByPlayer(EntityPlayer par1EntityPlayer) |
void |
markDirty() |
void |
openInventory() |
void |
resetRecipeAndSlots() |
void |
setCurrentRecipeIndex(int par1) |
void |
setInventorySlotContents(int par1,
ItemStack par2ItemStack) |
public InventoryMerchant(EntityPlayer par1EntityPlayer, IMerchant par2IMerchant)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack getStackInSlot(int par1)
getStackInSlot in interface IInventorypublic ItemStack decrStackSize(int par1, int par2)
decrStackSize in interface IInventorypublic ItemStack getStackInSlotOnClosing(int par1)
getStackInSlotOnClosing in interface IInventorypublic void setInventorySlotContents(int par1,
ItemStack par2ItemStack)
setInventorySlotContents in interface IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
isUseableByPlayer in interface IInventorypublic void openInventory()
openInventory in interface IInventorypublic void closeInventory()
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int par1,
ItemStack par2ItemStack)
isItemValidForSlot in interface IInventorypublic void markDirty()
markDirty in interface IInventorypublic void resetRecipeAndSlots()
public MerchantRecipe getCurrentRecipe()
public void setCurrentRecipeIndex(int par1)