Search in sources :

Example 6 with ModuleAdvancedExtractor

use of logisticspipes.modules.ModuleAdvancedExtractor in project LogisticsPipes by RS485.

the class AdvancedExtractorModuleSlot method getClientGui.

@Override
public Object getClientGui(EntityPlayer player) {
    ModuleAdvancedExtractor module = this.getLogisticsModule(player.getEntityWorld(), ModuleAdvancedExtractor.class);
    if (module == null) {
        return null;
    }
    module.setItemsIncluded(areItemsIncluded);
    return new GuiAdvancedExtractor(player.inventory, module);
}
Also used : ModuleAdvancedExtractor(logisticspipes.modules.ModuleAdvancedExtractor) GuiAdvancedExtractor(logisticspipes.gui.modules.GuiAdvancedExtractor)

Aggregations

ModuleAdvancedExtractor (logisticspipes.modules.ModuleAdvancedExtractor)6 DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)2 GuiAdvancedExtractor (logisticspipes.gui.modules.GuiAdvancedExtractor)1 ExtractorModuleSlot (logisticspipes.network.guis.module.inpipe.ExtractorModuleSlot)1 AdvancedExtractorInclude (logisticspipes.network.packets.modules.AdvancedExtractorInclude)1 CoreRoutedPipe (logisticspipes.pipes.basic.CoreRoutedPipe)1 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1