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