Search in sources :

Example 1 with GuiSupplierPipe

use of logisticspipes.gui.GuiSupplierPipe in project LogisticsPipes by RS485.

the class ActiveSupplierSlot method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    ModuleActiveSupplier module = this.getLogisticsModule(player.getEntityWorld(), ModuleActiveSupplier.class);
    if (module == null) {
        return null;
    }
    module.setLimited(isLimit);
    if (patternUpgarde) {
        module.setPatternMode(PatternMode.values()[mode]);
    } else {
        module.setSupplyMode(SupplyMode.values()[mode]);
    }
    return new GuiSupplierPipe(player.inventory, module.getDummyInventory(), module, patternUpgarde, slotArray);
}
Also used : ModuleActiveSupplier(logisticspipes.modules.ModuleActiveSupplier) GuiSupplierPipe(logisticspipes.gui.GuiSupplierPipe)

Aggregations

GuiSupplierPipe (logisticspipes.gui.GuiSupplierPipe)1 ModuleActiveSupplier (logisticspipes.modules.ModuleActiveSupplier)1