Search in sources :

Example 1 with LogisticsSimpleFilterModule

use of logisticspipes.modules.abstractmodules.LogisticsSimpleFilterModule in project LogisticsPipes by RS485.

the class SimpleFilterInventorySlot method getContainer.

@Override
public DummyContainer getContainer(EntityPlayer player) {
    LogisticsSimpleFilterModule module = this.getLogisticsModule(player.getEntityWorld(), LogisticsSimpleFilterModule.class);
    if (module == null) {
        return null;
    }
    DummyContainer dummy = new DummyContainer(player.inventory, module.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) LogisticsSimpleFilterModule(logisticspipes.modules.abstractmodules.LogisticsSimpleFilterModule)

Aggregations

LogisticsSimpleFilterModule (logisticspipes.modules.abstractmodules.LogisticsSimpleFilterModule)1 DummyContainer (logisticspipes.utils.gui.DummyContainer)1