public class WorkbenchContainer extends RecipeBookContainer<CraftingInventory>
Modifier and Type | Field and Description |
---|---|
private CraftingInventory |
craftMatrix |
private CraftResultInventory |
craftResult |
private IWorldPosCallable |
field_217070_e |
private PlayerEntity |
player |
inventorySlots, windowId
Constructor and Description |
---|
WorkbenchContainer(int p_i50089_1_,
PlayerInventory p_i50089_2_) |
WorkbenchContainer(int p_i50090_1_,
PlayerInventory p_i50090_2_,
IWorldPosCallable p_i50090_3_) |
Modifier and Type | Method and Description |
---|---|
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
void |
clear() |
void |
fillStackedContents(RecipeItemHelper itemHelperIn) |
protected static void |
func_217066_a(int p_217066_0_,
World p_217066_1_,
PlayerEntity p_217066_2_,
CraftingInventory p_217066_3_,
CraftResultInventory p_217066_4_) |
int |
getHeight() |
int |
getOutputSlot() |
int |
getSize() |
int |
getWidth() |
boolean |
matches(IRecipe<? super CraftingInventory> recipeIn) |
void |
onContainerClosed(PlayerEntity playerIn) |
void |
onCraftMatrixChanged(IInventory inventoryIn) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
func_217056_a, getRecipeBookCategories
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, canDragIntoSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBar
private final CraftingInventory craftMatrix
private final CraftResultInventory craftResult
private final IWorldPosCallable field_217070_e
private final PlayerEntity player
public WorkbenchContainer(int p_i50089_1_, PlayerInventory p_i50089_2_)
public WorkbenchContainer(int p_i50090_1_, PlayerInventory p_i50090_2_, IWorldPosCallable p_i50090_3_)
protected static void func_217066_a(int p_217066_0_, World p_217066_1_, PlayerEntity p_217066_2_, CraftingInventory p_217066_3_, CraftResultInventory p_217066_4_)
public void onCraftMatrixChanged(IInventory inventoryIn)
onCraftMatrixChanged
in class Container
public void fillStackedContents(RecipeItemHelper itemHelperIn)
fillStackedContents
in class RecipeBookContainer<CraftingInventory>
public void clear()
clear
in class RecipeBookContainer<CraftingInventory>
public boolean matches(IRecipe<? super CraftingInventory> recipeIn)
matches
in class RecipeBookContainer<CraftingInventory>
public void onContainerClosed(PlayerEntity playerIn)
onContainerClosed
in class Container
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith
in class Container
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot
in class Container
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
in class Container
public int getOutputSlot()
getOutputSlot
in class RecipeBookContainer<CraftingInventory>
public int getWidth()
getWidth
in class RecipeBookContainer<CraftingInventory>
public int getHeight()
getHeight
in class RecipeBookContainer<CraftingInventory>
public int getSize()
getSize
in class RecipeBookContainer<CraftingInventory>