Intial stages of an cleanup of the inventory code, this commit is very broken.

This commit is contained in:
CovertJaguar committed 2014-11-30 17:19:16 -08:00
1 parent 3d765067cf
commit 034cdf2860
73 files changed
+606 -759

No files matched your search

@@ -6,15 +6,12 @@
* 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.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import buildcraft.transport.Pipe;
import forestry.core.gui.ContainerForestry;
import forestry.core.utils.InventoryAdapter;
import forestry.core.inventory.InventoryAdapter;
import forestry.pipes.PipeItemsPropolis;
import forestry.pipes.PipeLogicPropolis;
@@ -28,17 +25,15 @@ public class ContainerPropolisPipe extends ContainerForestry {
this.playerIInventory = playerInventory;
this.pipeLogic = pipe.pipeLogic;
for (int l = 0; l < 3; l++)
for (int k1 = 0; k1 < 9; k1++)
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++)
for (int i1 = 0; i1 < 9; i1++) {
addSlot(new Slot(playerInventory, i1, 8 + i1 * 18, 198));
}
@Override
public boolean canInteractWith(EntityPlayer entityplayer) {
return true;
}
}
}