Search in sources :

Example 1 with BlueprintTableWidget

use of com.lowdragmc.multiblocked.api.gui.blueprint_table.BlueprintTableWidget in project Multiblocked by Low-Drag-MC.

the class BlueprintTableTileEntity method createUI.

@Override
public ModularUI createUI(PlayerEntity entityPlayer) {
    if (isFormed()) {
        return new ModularUI(384, 256, this, entityPlayer).widget(new BlueprintTableWidget(this));
    } else {
        TabContainer tabContainer = new TabContainer(0, 0, 200, 232);
        new StructurePageWidget(this.definition, tabContainer);
        return new ModularUI(196, 256, this, entityPlayer).widget(tabContainer);
    }
}
Also used : ModularUI(com.lowdragmc.lowdraglib.gui.modular.ModularUI) StructurePageWidget(com.lowdragmc.multiblocked.api.gui.controller.structure.StructurePageWidget) BlueprintTableWidget(com.lowdragmc.multiblocked.api.gui.blueprint_table.BlueprintTableWidget) TabContainer(com.lowdragmc.lowdraglib.gui.widget.TabContainer)

Aggregations

ModularUI (com.lowdragmc.lowdraglib.gui.modular.ModularUI)1 TabContainer (com.lowdragmc.lowdraglib.gui.widget.TabContainer)1 BlueprintTableWidget (com.lowdragmc.multiblocked.api.gui.blueprint_table.BlueprintTableWidget)1 StructurePageWidget (com.lowdragmc.multiblocked.api.gui.controller.structure.StructurePageWidget)1