public ContainerStencilTable(InventoryPlayer playerInventory, TileStencilTable tile) {
super(tile);
this.output = ItemStack.EMPTY;
this.craftMatrix = new InventoryCraftingPersistent(this, tile, 1, 1);
this.craftResult = new InventoryCraftResult();
this.addSlotToContainer(new SlotStencil(this.craftMatrix, 0, 48, 35, true));
this.addSlotToContainer(new SlotCraftingCustom(this, playerInventory.player, craftMatrix, craftResult, 1, 106, 35));
TilePatternChest chest = detectTE(TilePatternChest.class);
if(chest != null) {
patternChestSideInventory = new ContainerPatternChest.DynamicChestInventory(chest, chest, 6 + 176, 8, 6);
addSubContainer(patternChestSideInventory, true);
}
else {
patternChestSideInventory = null;
}
this.addPlayerInventory(playerInventory, 8, 84);
onCraftMatrixChanged(null);
}