mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 19:29:17 +00:00
40 lines
1.1 KiB
Java
Executable File
40 lines
1.1 KiB
Java
Executable File
/**
|
|
* Copyright (c) SpaceToad, 2011
|
|
* http://www.mod-buildcraft.com
|
|
*
|
|
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
|
* License 1.0, or MMPL. Please check the contents of the license located in
|
|
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
|
*/
|
|
package forestry.pipes.gui;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
import net.minecraft.inventory.Slot;
|
|
import forestry.core.gui.ContainerForestry;
|
|
import forestry.core.inventory.InventoryAdapter;
|
|
import forestry.pipes.PipeItemsPropolis;
|
|
import forestry.pipes.PipeLogicPropolis;
|
|
|
|
public class ContainerPropolisPipe extends ContainerForestry {
|
|
|
|
IInventory playerIInventory;
|
|
public PipeLogicPropolis pipeLogic;
|
|
|
|
public ContainerPropolisPipe(IInventory playerInventory, PipeItemsPropolis pipe) {
|
|
super(new InventoryAdapter(0, "Empty"));
|
|
this.playerIInventory = playerInventory;
|
|
this.pipeLogic = pipe.pipeLogic;
|
|
|
|
for (int l = 0; l < 3; l++) {
|
|
for (int k1 = 0; k1 < 9; k1++) {
|
|
addSlot(new Slot(playerInventory, k1 + l * 9 + 9, 8 + k1 * 18, 140 + l * 18));
|
|
}
|
|
}
|
|
|
|
for (int i1 = 0; i1 < 9; i1++) {
|
|
addSlot(new Slot(playerInventory, i1, 8 + i1 * 18, 198));
|
|
}
|
|
}
|
|
|
|
}
|