YATS/Forge Documentation
|
Public Member Functions | |
InventoryMerchant (EntityPlayer par1EntityPlayer, IMerchant par2IMerchant) | |
int | getSizeInventory () |
ItemStack | getStackInSlot (int par1) |
ItemStack | decrStackSize (int par1, int par2) |
ItemStack | getStackInSlotOnClosing (int par1) |
void | setInventorySlotContents (int par1, ItemStack par2ItemStack) |
String | getInvName () |
boolean | isInvNameLocalized () |
int | getInventoryStackLimit () |
boolean | isUseableByPlayer (EntityPlayer par1EntityPlayer) |
void | openChest () |
void | closeChest () |
boolean | isStackValidForSlot (int par1, ItemStack par2ItemStack) |
void | onInventoryChanged () |
void | resetRecipeAndSlots () |
MerchantRecipe | getCurrentRecipe () |
void | setCurrentRecipeIndex (int par1) |
net.minecraft.inventory.InventoryMerchant.InventoryMerchant | ( | EntityPlayer | par1EntityPlayer, |
IMerchant | par2IMerchant | ||
) |
void net.minecraft.inventory.InventoryMerchant.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.inventory.InventoryMerchant.decrStackSize | ( | int | par1, |
int | par2 | ||
) |
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.
Implements net.minecraft.inventory.IInventory.
MerchantRecipe net.minecraft.inventory.InventoryMerchant.getCurrentRecipe | ( | ) |
int net.minecraft.inventory.InventoryMerchant.getInventoryStackLimit | ( | ) |
Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?
Implements net.minecraft.inventory.IInventory.
String net.minecraft.inventory.InventoryMerchant.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
int net.minecraft.inventory.InventoryMerchant.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.inventory.InventoryMerchant.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
ItemStack net.minecraft.inventory.InventoryMerchant.getStackInSlotOnClosing | ( | int | par1) |
When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem - like when you close a workbench GUI.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.inventory.InventoryMerchant.isInvNameLocalized | ( | ) |
If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language. Otherwise it will be used directly.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.inventory.InventoryMerchant.isStackValidForSlot | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implements net.minecraft.inventory.IInventory.
boolean net.minecraft.inventory.InventoryMerchant.isUseableByPlayer | ( | EntityPlayer | par1EntityPlayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implements net.minecraft.inventory.IInventory.
void net.minecraft.inventory.InventoryMerchant.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
void net.minecraft.inventory.InventoryMerchant.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
void net.minecraft.inventory.InventoryMerchant.resetRecipeAndSlots | ( | ) |
void net.minecraft.inventory.InventoryMerchant.setCurrentRecipeIndex | ( | int | par1) |
void net.minecraft.inventory.InventoryMerchant.setInventorySlotContents | ( | int | par1, |
ItemStack | par2ItemStack | ||
) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implements net.minecraft.inventory.IInventory.