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;
}
Aggregations