Search in sources :

Example 1 with GuiElectricManager

use of logisticspipes.gui.modules.GuiElectricManager in project LogisticsPipes by RS485.

the class ElectricModuleSlot method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    ModuleElectricManager module = this.getLogisticsModule(player.getEntityWorld(), ModuleElectricManager.class);
    if (module == null) {
        return null;
    }
    module.setDischargeMode(isFlag());
    return new GuiElectricManager(player.inventory, module);
}
Also used : ModuleElectricManager(logisticspipes.modules.ModuleElectricManager) GuiElectricManager(logisticspipes.gui.modules.GuiElectricManager)

Aggregations

GuiElectricManager (logisticspipes.gui.modules.GuiElectricManager)1 ModuleElectricManager (logisticspipes.modules.ModuleElectricManager)1