Package net.minecraft.src
Class SlotMerchantResult
java.lang.Object
net.minecraft.src.Slot
net.minecraft.src.SlotMerchantResult
-
Field Summary
Fields inherited from class net.minecraft.src.Slot
inventory, slotNumber, xDisplayPosition, yDisplayPosition -
Constructor Summary
ConstructorsConstructorDescriptionSlotMerchantResult(EntityPlayer par1EntityPlayer, IMerchant par2IMerchant, InventoryMerchant par3InventoryMerchant, int par4, int par5, int par6) -
Method Summary
Modifier and TypeMethodDescriptiondecrStackSize(int par1) Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.booleanisItemValid(ItemStack par1ItemStack) Check if the stack is a valid item for this slot.protected voidonCrafting(ItemStack par1ItemStack) the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.protected voidonCrafting(ItemStack par1ItemStack, int par2) the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.voidonPickupFromSlot(EntityPlayer par1EntityPlayer, ItemStack par2ItemStack) Methods inherited from class net.minecraft.src.Slot
canTakeStack, func_111238_b, getBackgroundIconIndex, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isHere, onSlotChange, onSlotChanged, putStack
-
Constructor Details
-
SlotMerchantResult
public SlotMerchantResult(EntityPlayer par1EntityPlayer, IMerchant par2IMerchant, InventoryMerchant par3InventoryMerchant, int par4, int par5, int par6)
-
-
Method Details
-
isItemValid
Check if the stack is a valid item for this slot. Always true beside for the armor slots.- Overrides:
isItemValidin classSlot
-
decrStackSize
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg. Returns the new stack.- Overrides:
decrStackSizein classSlot
-
onCrafting
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).- Overrides:
onCraftingin classSlot
-
onCrafting
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.- Overrides:
onCraftingin classSlot
-
onPickupFromSlot
- Overrides:
onPickupFromSlotin classSlot
-