Package forestry.pipes.gui

Source Code of forestry.pipes.gui.ContainerPropolisPipe

/**
* 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;
  }

}
TOP

Related Classes of forestry.pipes.gui.ContainerPropolisPipe

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.