Search in sources :

Example 1 with PartScriptWidget

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

the class PartTileTesterEntity method createUI.

@Override
public ModularUI createUI(PlayerEntity entityPlayer) {
    if (Multiblocked.isClient() && Multiblocked.isSinglePlayer()) {
        TabContainer tabContainer = new TabContainer(0, 0, 200, 232);
        new PartScriptWidget(this, tabContainer);
        if (getDefinition() != DEFAULT_DEFINITION) {
            if (!traits.isEmpty())
                initTraitUI(tabContainer, entityPlayer);
        }
        return new ModularUI(196, 256, this, entityPlayer).widget(tabContainer);
    }
    return null;
}
Also used : ModularUI(com.lowdragmc.lowdraglib.gui.modular.ModularUI) TabContainer(com.lowdragmc.lowdraglib.gui.widget.TabContainer) PartScriptWidget(com.lowdragmc.multiblocked.api.gui.tester.PartScriptWidget)

Aggregations

ModularUI (com.lowdragmc.lowdraglib.gui.modular.ModularUI)1 TabContainer (com.lowdragmc.lowdraglib.gui.widget.TabContainer)1 PartScriptWidget (com.lowdragmc.multiblocked.api.gui.tester.PartScriptWidget)1