YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.inventory.SlotMerchantResult Class Reference
Inheritance diagram for net.minecraft.inventory.SlotMerchantResult:
net.minecraft.inventory.Slot

Public Member Functions

 SlotMerchantResult (EntityPlayer par1EntityPlayer, IMerchant par2IMerchant, InventoryMerchant par3InventoryMerchant, int par4, int par5, int par6)
 
boolean isItemValid (ItemStack par1ItemStack)
 
ItemStack decrStackSize (int par1)
 
void onPickupFromSlot (EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
 
- Public Member Functions inherited from net.minecraft.inventory.Slot
 Slot (IInventory par1IInventory, int par2, int par3, int par4)
 
void onSlotChange (ItemStack par1ItemStack, ItemStack par2ItemStack)
 
void onPickupFromSlot (EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
 
boolean isItemValid (ItemStack par1ItemStack)
 
ItemStack getStack ()
 
boolean getHasStack ()
 
void putStack (ItemStack par1ItemStack)
 
void onSlotChanged ()
 
int getSlotStackLimit ()
 
ItemStack decrStackSize (int par1)
 
boolean isSlotInInventory (IInventory par1IInventory, int par2)
 
boolean canTakeStack (EntityPlayer par1EntityPlayer)
 
Icon getBackgroundIconIndex ()
 
String getBackgroundIconTexture ()
 
void setBackgroundIconIndex (Icon icon)
 
void setBackgroundIconTexture (String textureFilename)
 
int getSlotIndex ()
 

Protected Member Functions

void onCrafting (ItemStack par1ItemStack, int par2)
 
void onCrafting (ItemStack par1ItemStack)
 
- Protected Member Functions inherited from net.minecraft.inventory.Slot
void onCrafting (ItemStack par1ItemStack, int par2)
 
void onCrafting (ItemStack par1ItemStack)
 

Additional Inherited Members

- Public Attributes inherited from net.minecraft.inventory.Slot
final IInventory inventory
 
int slotNumber
 
int xDisplayPosition
 
int yDisplayPosition
 
- Protected Attributes inherited from net.minecraft.inventory.Slot
Icon backgroundIcon = null
 
String texture = "/gui/items.png"
 

Constructor & Destructor Documentation

net.minecraft.inventory.SlotMerchantResult.SlotMerchantResult ( EntityPlayer  par1EntityPlayer,
IMerchant  par2IMerchant,
InventoryMerchant  par3InventoryMerchant,
int  par4,
int  par5,
int  par6 
)

Member Function Documentation

ItemStack net.minecraft.inventory.SlotMerchantResult.decrStackSize ( int  par1)

Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack.

boolean net.minecraft.inventory.SlotMerchantResult.isItemValid ( ItemStack  par1ItemStack)

Check if the stack is a valid item for this slot. Always true beside for the armor slots.

void net.minecraft.inventory.SlotMerchantResult.onCrafting ( ItemStack  par1ItemStack,
int  par2 
)
protected

the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood. Typically increases an internal count then calls onCrafting(item).

void net.minecraft.inventory.SlotMerchantResult.onCrafting ( ItemStack  par1ItemStack)
protected

the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.

void net.minecraft.inventory.SlotMerchantResult.onPickupFromSlot ( EntityPlayer  par1EntityPlayer,
ItemStack  par2ItemStack 
)

The documentation for this class was generated from the following file: