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