public class SlotCrafting extends Slot
backgroundLocation, backgroundMap, backgroundName, inventory, slotNumber, xDisplayPosition, yDisplayPosition| Constructor and Description |
|---|
SlotCrafting(EntityPlayer player,
InventoryCrafting craftingInventory,
IInventory inventoryIn,
int slotIndex,
int xPosition,
int yPosition) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
decrStackSize(int amount) |
boolean |
isItemValid(ItemStack stack) |
protected void |
onCrafting(ItemStack stack) |
protected void |
onCrafting(ItemStack stack,
int amount) |
void |
onPickupFromSlot(EntityPlayer playerIn,
ItemStack stack) |
canBeHovered, canTakeStack, getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getItemStackLimit, getSlotIndex, getSlotStackLimit, getSlotTexture, getStack, isHere, onSlotChange, onSlotChanged, putStack, setBackgroundLocation, setBackgroundNamepublic SlotCrafting(EntityPlayer player, InventoryCrafting craftingInventory, IInventory inventoryIn, int slotIndex, int xPosition, int yPosition)
public boolean isItemValid(@Nullable
ItemStack stack)
isItemValid in class Slotpublic ItemStack decrStackSize(int amount)
decrStackSize in class Slotprotected void onCrafting(ItemStack stack, int amount)
onCrafting in class Slotprotected void onCrafting(ItemStack stack)
onCrafting in class Slotpublic void onPickupFromSlot(EntityPlayer playerIn, ItemStack stack)
onPickupFromSlot in class Slot