public class SlotCrafter
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotCrafter(net.minecraft.entity.player.EntityPlayer player,
InventoryCraftingForestry craftMatrix,
net.minecraft.inventory.IInventory craftingDisplay,
ICrafterWorktable crafter,
int slot,
int xPos,
int yPos) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int amount) |
boolean |
getHasStack() |
net.minecraft.item.ItemStack |
getStack() |
boolean |
isItemValid(net.minecraft.item.ItemStack stack)
Check if the stack is a valid item for this slot.
|
protected void |
onCrafting(net.minecraft.item.ItemStack stack)
Copied from
SlotCrafting.onCrafting(ItemStack) |
protected void |
onCrafting(net.minecraft.item.ItemStack stack,
int amount)
the itemStack passed in is the output - ie, iron ingots, and pickaxes, not ore and wood.
|
net.minecraft.item.ItemStack |
onTake(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack) |
getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, isEnabled, isHere, isSameInventory, onSlotChange, onSlotChanged, onSwapCraft, putStack, setBackgroundLocation, setBackgroundNamepublic SlotCrafter(net.minecraft.entity.player.EntityPlayer player,
InventoryCraftingForestry craftMatrix,
net.minecraft.inventory.IInventory craftingDisplay,
ICrafterWorktable crafter,
int slot,
int xPos,
int yPos)
public boolean isItemValid(net.minecraft.item.ItemStack stack)
isItemValid in class net.minecraft.inventory.Slotprotected void onCrafting(net.minecraft.item.ItemStack stack,
int amount)
onCrafting in class net.minecraft.inventory.Slotprotected void onCrafting(net.minecraft.item.ItemStack stack)
SlotCrafting.onCrafting(ItemStack)onCrafting in class net.minecraft.inventory.Slotpublic net.minecraft.item.ItemStack decrStackSize(int amount)
decrStackSize in class net.minecraft.inventory.Slotpublic boolean canTakeStack(net.minecraft.entity.player.EntityPlayer player)
canTakeStack in class net.minecraft.inventory.Slotpublic net.minecraft.item.ItemStack getStack()
getStack in class net.minecraft.inventory.Slotpublic boolean getHasStack()
getHasStack in class net.minecraft.inventory.Slotpublic net.minecraft.item.ItemStack onTake(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack)
onTake in class net.minecraft.inventory.Slot