use of gregtech.common.gui.widget.ItemListGridWidget in project GregTech by GregTechCE.
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"));
CraftingRecipeResolver recipeResolver = getRecipeResolver();
IItemList itemList = recipeResolver == null ? null : recipeResolver.getItemSourceList();
widgetGroup.addWidget(new ItemListGridWidget(2, 45, 9, 5, itemList));
return widgetGroup;
}
Aggregations