Search in sources :

Example 11 with DummyModuleContainer

use of logisticspipes.utils.gui.DummyModuleContainer in project LogisticsPipes by RS485.

the class SimpleFilterInventoryInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof LogisticsSimpleFilterModule)) {
        return null;
    }
    dummy.setInventory(((LogisticsSimpleFilterModule) dummy.getModule()).getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(8, 60);
    //Pipe slots
    for (int pipeSlot = 0; pipeSlot < 9; pipeSlot++) {
        dummy.addDummySlot(pipeSlot, 8 + pipeSlot * 18, 18);
    }
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) LogisticsSimpleFilterModule(logisticspipes.modules.abstractmodules.LogisticsSimpleFilterModule)

Example 12 with DummyModuleContainer

use of logisticspipes.utils.gui.DummyModuleContainer in project LogisticsPipes by RS485.

the class StringBasedItemSinkModuleGuiInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof IStringBasedModule)) {
        return null;
    }
    dummy.setInventory(new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) IStringBasedModule(logisticspipes.interfaces.IStringBasedModule) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Example 13 with DummyModuleContainer

use of logisticspipes.utils.gui.DummyModuleContainer in project LogisticsPipes by RS485.

the class ThaumicAspectSinkModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleThaumicAspectSink)) {
        return null;
    }
    dummy.setInventory(new ItemIdentifierInventory(1, "TMP", 1));
    dummy.addDummySlot(0, 0, 0);
    dummy.addNormalSlotsForPlayerInventory(0, 0);
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleThaumicAspectSink(logisticspipes.modules.ModuleThaumicAspectSink) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory)

Aggregations

DummyModuleContainer (logisticspipes.utils.gui.DummyModuleContainer)13 ItemIdentifierInventory (logisticspipes.utils.item.ItemIdentifierInventory)3 ModuleAdvancedExtractor (logisticspipes.modules.ModuleAdvancedExtractor)2 CoreRoutedPipe (logisticspipes.pipes.basic.CoreRoutedPipe)2 LogisticsTileGenericPipe (logisticspipes.pipes.basic.LogisticsTileGenericPipe)2 DummyContainer (logisticspipes.utils.gui.DummyContainer)2 IStringBasedModule (logisticspipes.interfaces.IStringBasedModule)1 ModuleActiveSupplier (logisticspipes.modules.ModuleActiveSupplier)1 ModuleApiaristSink (logisticspipes.modules.ModuleApiaristSink)1 ModuleCrafter (logisticspipes.modules.ModuleCrafter)1 ModuleElectricManager (logisticspipes.modules.ModuleElectricManager)1 ModuleItemSink (logisticspipes.modules.ModuleItemSink)1 ModuleOreDictItemSink (logisticspipes.modules.ModuleOreDictItemSink)1 ModuleProvider (logisticspipes.modules.ModuleProvider)1 ModuleThaumicAspectSink (logisticspipes.modules.ModuleThaumicAspectSink)1 LogisticsModule (logisticspipes.modules.abstractmodules.LogisticsModule)1 LogisticsSimpleFilterModule (logisticspipes.modules.abstractmodules.LogisticsSimpleFilterModule)1 ExtractorModuleSlot (logisticspipes.network.guis.module.inpipe.ExtractorModuleSlot)1 PipeLogisticsChassi (logisticspipes.pipes.PipeLogisticsChassi)1