use of gregtech.common.gui.widget.craftingstation.ItemListGridWidget in project GregTech by GregTechCEu.
the class MetaTileEntityWorkbench method createItemListTab.
private AbstractWidgetGroup createItemListTab() {
WidgetGroup widgetGroup = new WidgetGroup();
widgetGroup.addWidget(new LabelWidget(5, 20, "gregtech.machine.workbench.storage_note_1"));
widgetGroup.addWidget(new LabelWidget(5, 30, "gregtech.machine.workbench.storage_note_2"));
CraftingRecipeLogic recipeResolver = getRecipeLogic();
IItemList itemList = recipeResolver == null ? null : recipeResolver.getItemSourceList();
widgetGroup.addWidget(new ItemListGridWidget(11, 45, 8, 5, itemList));
return widgetGroup;
}
Aggregations