mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Reformed Forestry!
* Updated for BC 6.0.x compatibility * Re-implemented the Pipes plugin * Converted to vanilla assets lang system * Converted to standard gradle file structure * General warnings cleanup
This commit is contained in:
1 parent
36248c02f1
commit
8f2d802f11
1602 files changed
+724
-736
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* 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.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.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 = (PipeLogicPropolis) 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));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInteractWith(EntityPlayer entityplayer) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user