public class SlotFurnaceOutput extends Slot
backgroundLocation, backgroundMap, backgroundName, inventory, slotNumber, xPos, yPos
Constructor and Description |
---|
SlotFurnaceOutput(EntityPlayer player,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
decrStackSize(int amount)
Decrease the size of the stack in slot (first int arg) by the amount of the second int arg.
|
boolean |
isItemValid(ItemStack stack)
Check if the stack is allowed to be placed in this slot, used for armor slots as well as furnace fuel.
|
protected void |
onCrafting(ItemStack stack)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
protected void |
onCrafting(ItemStack stack,
int amount)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
ItemStack |
onTake(EntityPlayer thePlayer,
ItemStack stack) |
canBeHovered, canTakeStack, getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, getStack, isHere, isSameInventory, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundLocation, setBackgroundName
public SlotFurnaceOutput(EntityPlayer player, IInventory inventoryIn, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(ItemStack stack)
isItemValid
in class Slot
public ItemStack decrStackSize(int amount)
decrStackSize
in class Slot
public ItemStack onTake(EntityPlayer thePlayer, ItemStack stack)
protected void onCrafting(ItemStack stack, int amount)
onCrafting
in class Slot
protected void onCrafting(ItemStack stack)
onCrafting
in class Slot