use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class OreDictItemSinkModuleSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
ModuleOreDictItemSink module = this.getLogisticsModule(player.getEntityWorld(), ModuleOreDictItemSink.class);
if (module == null) {
return null;
}
DummyContainer dummy = new DummyContainer(player.inventory, new ItemIdentifierInventory(1, "TMP", 1));
dummy.addDummySlot(0, 0, 0);
dummy.addNormalSlotsForPlayerInventory(0, 0);
return dummy;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class SimpleFilterInventorySlot method getContainerFromFilterModule.
@Nullable
public static DummyContainer getContainerFromFilterModule(ModuleCoordinatesGuiProvider guiProvider, EntityPlayer player) {
SimpleFilter filter = guiProvider.getLogisticsModule(player.getEntityWorld(), SimpleFilter.class);
if (filter == null) {
return null;
}
DummyContainer dummy = new DummyContainer(player.inventory, filter.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 CraftingModuleSlot method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
ModuleCrafter module = this.getLogisticsModule(player.getEntityWorld(), ModuleCrafter.class);
if (module == null) {
return null;
}
MainProxy.sendPacketToPlayer(module.getCPipePacket(), player);
DummyContainer dummy = new DummyContainer(player, module.dummyInventory, module);
dummy.addNormalSlotsForPlayerInventory(18, 97);
// Input slots
for (int l = 0; l < 9; l++) {
dummy.addFuzzyDummySlot(l, 18 + l * 18, 18, module.inputFuzzy(l));
}
// Output slot
dummy.addFuzzyDummySlot(9, 90, 64, module.outputFuzzy());
for (int i = 0; i < liquidCrafter; i++) {
int liquidLeft = -(i * 40) - 40;
dummy.addFluidSlot(i, module.liquidInventory, liquidLeft + 13, 42);
}
if (hasByproductExtractor) {
dummy.addDummySlot(10, 197, 104);
}
for (int Y = 0; Y < cleanupSize; Y++) {
for (int X = 0; X < 3; X++) {
dummy.addDummySlot(Y * 3 + X, module.cleanupInventory, X * 18 - 57, Y * 18 + 13);
}
}
return dummy;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class AutoCraftingGui method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
LogisticsCraftingTableTileEntity tile = getTileAs(player.world, LogisticsCraftingTableTileEntity.class);
DummyContainer dummy = new DummyContainer(player, tile.matrix, tile);
for (int X = 0; X < 3; X++) {
for (int Y = 0; Y < 3; Y++) {
dummy.addFuzzyDummySlot(Y * 3 + X, 35 + X * 18, 10 + Y * 18, tile.inputFuzzy(Y * 3 + X));
}
}
dummy.addFuzzyUnmodifiableSlot(0, tile.resultInv, 125, 28, tile.outputFuzzy());
for (int Y = 0; Y < 2; Y++) {
for (int X = 0; X < 9; X++) {
dummy.addNormalSlot(Y * 9 + X, tile.inv, 8 + X * 18, 80 + Y * 18);
}
}
dummy.addNormalSlotsForPlayerInventory(8, 135);
return dummy;
}
use of logisticspipes.utils.gui.DummyContainer in project LogisticsPipes by RS485.
the class PowerProviderGui method getContainer.
@Override
public DummyContainer getContainer(EntityPlayer player) {
DummyContainer dummy = new DummyContainer(player, null, getTileAs(player.world, LogisticsPowerProviderTileEntity.class));
dummy.addNormalSlotsForPlayerInventory(8, 80);
return dummy;
}
Aggregations