net.minecraft.src
Class SlotMerchantResult
java.lang.Object
net.minecraft.src.Slot
net.minecraft.src.SlotMerchantResult
public class SlotMerchantResult
- extends Slot
Method Summary |
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. |
void |
onPickupFromSlot(ItemStack par1ItemStack)
Called when the player picks up an item from an inventory slot |
SlotMerchantResult
public SlotMerchantResult(EntityPlayer par1EntityPlayer,
IMerchant par2IMerchant,
InventoryMerchant par3InventoryMerchant,
int par4,
int par5,
int par6)
isItemValid
public boolean isItemValid(ItemStack par1ItemStack)
- Check if the stack is a valid item for this slot. Always true beside for the armor slots.
- Overrides:
isItemValid
in class Slot
decrStackSize
public ItemStack 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.
- Overrides:
decrStackSize
in class Slot
onPickupFromSlot
public void onPickupFromSlot(ItemStack par1ItemStack)
- Called when the player picks up an item from an inventory slot
- Overrides:
onPickupFromSlot
in class Slot