use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class ElectricModuleSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
ModuleElectricManager module = this.getLogisticsModule(player.getEntityWorld(), ModuleElectricManager.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;
}
use of logisticspipes.utils.gui.DummyContainer 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;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class FluidSupplierSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
ModuleFluidSupplier module = this.getLogisticsModule(player.getEntityWorld(), ModuleFluidSupplier.class);
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;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class ActiveSupplierSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
ModuleActiveSupplier module = this.getLogisticsModule(player.getEntityWorld(), ModuleActiveSupplier.class);
if (module == null) {
return null;
}
DummyContainer dummy = new DummyContainer(player.inventory, module.inventory);
dummy.addNormalSlotsForPlayerInventory(18, 97);
for (int row = 0; row < 3; row++) {
for (int column = 0; column < 3; column++) {
dummy.addDummySlot(column + row * 3, 72 + column * 18, 18 + row * 18);
}
}
return dummy;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class LogisticsPlayerSettingsGuiProvider method getContainer.
@Override
public Container getContainer(EntityPlayer player) {
DummyContainer dummy = new DummyContainer(player.inventory, null);
// server does not care where the slots are
dummy.addNormalSlotsForPlayerInventory(0, 0);
return dummy;
}
Aggregations