public class SlotMerchantResult extends Slot
backgroundIcon, inventory, slotNumber, texture, xDisplayPosition, yDisplayPosition
Constructor and Description |
---|
SlotMerchantResult(EntityPlayer par1EntityPlayer,
IMerchant par2IMerchant,
InventoryMerchant par3InventoryMerchant,
int par4,
int par5,
int par6) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
decrStackSize(int par1)
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.
|
boolean |
isItemValid(ItemStack par1ItemStack)
Check if the stack is a valid item for this slot.
|
protected void |
onCrafting(ItemStack par1ItemStack)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
protected void |
onCrafting(ItemStack par1ItemStack,
int par2)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
void |
onPickupFromSlot(EntityPlayer par1EntityPlayer,
ItemStack par2ItemStack) |
canTakeStack, func_111238_b, getBackgroundIconIndex, getBackgroundIconTexture, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isSlotInInventory, onSlotChange, onSlotChanged, putStack, setBackgroundIcon, setBackgroundIconTexture
public SlotMerchantResult(EntityPlayer par1EntityPlayer, IMerchant par2IMerchant, InventoryMerchant par3InventoryMerchant, int par4, int par5, int par6)
public boolean isItemValid(ItemStack par1ItemStack)
isItemValid
in class Slot
public ItemStack decrStackSize(int par1)
decrStackSize
in class Slot
protected void onCrafting(ItemStack par1ItemStack, int par2)
onCrafting
in class Slot
protected void onCrafting(ItemStack par1ItemStack)
onCrafting
in class Slot
public void onPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack)
onPickupFromSlot
in class Slot