Package net.minecraft.src
Class SlotCrafting
java.lang.Object
net.minecraft.src.Slot
net.minecraft.src.SlotCrafting
-
Field Summary
Fields inherited from class net.minecraft.src.Slot
inventory, slotNumber, xDisplayPosition, yDisplayPosition -
Constructor Summary
ConstructorsConstructorDescriptionSlotCrafting(EntityPlayer par1EntityPlayer, IInventory par2IInventory, IInventory par3IInventory, 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 player, ItemStack par2ItemStack) voidMethods inherited from class net.minecraft.src.Slot
canTakeStack, func_111238_b, getBackgroundIconIndex, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isHere, onSlotChange, onSlotChanged, putStack
-
Constructor Details
-
SlotCrafting
public SlotCrafting(EntityPlayer par1EntityPlayer, IInventory par2IInventory, IInventory par3IInventory, 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
-
setRecipe
-
getCraftMatrix
-