use of gregtech.api.gui.widgets.tab.ItemTabInfo in project GregTech by GregTechCE.
the class MetaTileEntityWorkbench method createUI.
@Override
protected ModularUI createUI(EntityPlayer entityPlayer) {
Builder builder = ModularUI.builder(GuiTextures.BORDERED_BACKGROUND, 176, 221).bindPlayerInventory(entityPlayer.inventory, 140);
builder.label(5, 5, getMetaFullName());
TabGroup tabGroup = new TabGroup(TabLocation.HORIZONTAL_TOP_LEFT, Position.ORIGIN);
tabGroup.addTab(new ItemTabInfo("gregtech.machine.workbench.tab.workbench", new ItemStack(Blocks.CRAFTING_TABLE)), createWorkbenchTab());
tabGroup.addTab(new ItemTabInfo("gregtech.machine.workbench.tab.item_list", new ItemStack(Blocks.CHEST)), createItemListTab());
builder.widget(tabGroup);
return builder.build(getHolder(), entityPlayer);
}
Aggregations