Search in sources :

Example 6 with DummyModuleContainer

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

the class ActiveSupplierInHand method getContainer.

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

Example 7 with DummyModuleContainer

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

the class ElectricModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleElectricManager)) {
        return null;
    }
    dummy.setInventory(((ModuleElectricManager) 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 : ModuleElectricManager(logisticspipes.modules.ModuleElectricManager) DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer)

Example 8 with DummyModuleContainer

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

the class ItemSinkInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(((DummyModuleContainer) dummy).getModule() instanceof ModuleItemSink)) {
        return null;
    }
    ((DummyModuleContainer) dummy).setInventory(((ModuleItemSink) ((DummyModuleContainer) 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 : DummyContainer(logisticspipes.utils.gui.DummyContainer) DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleItemSink(logisticspipes.modules.ModuleItemSink)

Example 9 with DummyModuleContainer

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

the class OreDictItemSinkModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleOreDictItemSink)) {
        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) ItemIdentifierInventory(logisticspipes.utils.item.ItemIdentifierInventory) ModuleOreDictItemSink(logisticspipes.modules.ModuleOreDictItemSink)

Example 10 with DummyModuleContainer

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

the class ProviderModuleInHand method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    DummyModuleContainer dummy = new DummyModuleContainer(player, getInvSlot());
    if (!(dummy.getModule() instanceof ModuleProvider)) {
        return null;
    }
    dummy.setInventory(((ModuleProvider) dummy.getModule()).getFilterInventory());
    dummy.addNormalSlotsForPlayerInventory(18, 97);
    int xOffset = 72;
    int yOffset = 18;
    for (int row = 0; row < 3; row++) {
        for (int column = 0; column < 3; column++) {
            dummy.addDummySlot(column + row * 3, xOffset + column * 18, yOffset + row * 18);
        }
    }
    return dummy;
}
Also used : DummyModuleContainer(logisticspipes.utils.gui.DummyModuleContainer) ModuleProvider(logisticspipes.modules.ModuleProvider)

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