public class WorkbenchCrafting
extends net.minecraft.inventory.InventoryCrafting
| Modifier and Type | Field and Description |
|---|---|
static net.minecraft.inventory.Container |
CONTAINER_EVENT_HANDLER |
| Constructor and Description |
|---|
WorkbenchCrafting(int width,
int height,
TileBC_Neptune tile,
ItemHandlerSimple invBlueprint,
ItemHandlerSimple invMaterials,
ItemHandlerSimple invResult) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCraft() |
boolean |
craft()
Attempts to craft a single item.
|
net.minecraft.item.ItemStack |
getAssumedResult() |
net.minecraft.item.ItemStack |
getStackInSlot(int index) |
void |
onInventoryChange(net.minecraftforge.items.IItemHandler inv) |
boolean |
tick() |
clear, closeInventory, decrStackSize, fillStackedContents, getDisplayName, getField, getFieldCount, getHeight, getInventoryStackLimit, getName, getSizeInventory, getStackInRowAndColumn, getWidth, hasCustomName, isEmpty, isItemValidForSlot, isUsableByPlayer, markDirty, openInventory, removeStackFromSlot, setField, setInventorySlotContentspublic static final net.minecraft.inventory.Container CONTAINER_EVENT_HANDLER
public WorkbenchCrafting(int width,
int height,
TileBC_Neptune tile,
ItemHandlerSimple invBlueprint,
ItemHandlerSimple invMaterials,
ItemHandlerSimple invResult)
public net.minecraft.item.ItemStack getStackInSlot(int index)
getStackInSlot in interface net.minecraft.inventory.IInventorygetStackInSlot in class net.minecraft.inventory.InventoryCraftingpublic net.minecraft.item.ItemStack getAssumedResult()
public void onInventoryChange(net.minecraftforge.items.IItemHandler inv)
public boolean tick()
public boolean canCraft()
public boolean craft()
throws java.lang.IllegalStateException
canCraft() has been called in the same tick, without any
modifications happening to thejava.lang.IllegalStateException - if canCraft() hasn't been called before, or something changed in the
meantime.