use of com.lowdragmc.multiblocked.api.gui.controller.RecipePage in project Multiblocked by Low-Drag-MC.
the class ControllerTileTesterEntity method createUI.
@Override
public ModularUI createUI(PlayerEntity entityPlayer) {
if (Multiblocked.isClient() && Multiblocked.isSinglePlayer()) {
TabContainer tabContainer = new TabContainer(0, 0, 200, 232);
new ControllerScriptWidget(this, tabContainer);
if (getDefinition() != DEFAULT_DEFINITION) {
if (!traits.isEmpty())
initTraitUI(tabContainer, entityPlayer);
if (isFormed()) {
new RecipePage(this, tabContainer);
new IOPageWidget(this, tabContainer);
} else {
new StructurePageWidget(this.definition, tabContainer);
}
}
return new ModularUI(196, 256, this, entityPlayer).widget(tabContainer);
}
return null;
}
use of com.lowdragmc.multiblocked.api.gui.controller.RecipePage in project Multiblocked by Low-Drag-MC.
the class ControllerTileEntity method createUI.
@Override
public ModularUI createUI(PlayerEntity entityPlayer) {
TabContainer tabContainer = new TabContainer(0, 0, 200, 232);
if (!traits.isEmpty())
initTraitUI(tabContainer, entityPlayer);
if (isFormed()) {
new RecipePage(this, tabContainer);
new IOPageWidget(this, tabContainer);
} else {
new StructurePageWidget(this.definition, tabContainer);
}
return new ModularUI(196, 256, this, entityPlayer).widget(tabContainer);
}
Aggregations