Search in sources :

Example 1 with ItemListGridWidget

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

Aggregations

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