Search in sources :

Example 1 with ItemListGridWidget

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;
}
Also used : IItemList(gregtech.common.inventory.IItemList) ItemListGridWidget(gregtech.common.gui.widget.ItemListGridWidget)

Aggregations

ItemListGridWidget (gregtech.common.gui.widget.ItemListGridWidget)1 IItemList (gregtech.common.inventory.IItemList)1