Package logisticspipes.gui

Source Code of logisticspipes.gui.ItemAmountSignCreationGui

package logisticspipes.gui;

import logisticspipes.pipes.basic.CoreRoutedPipe;
import logisticspipes.pipes.signs.ItemAmountPipeSign;
import logisticspipes.utils.gui.BasicGuiHelper;
import logisticspipes.utils.gui.DummyContainer;
import logisticspipes.utils.gui.LogisticsBaseGuiScreen;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraftforge.common.util.ForgeDirection;

public class ItemAmountSignCreationGui extends LogisticsBaseGuiScreen {
 
  public ItemAmountSignCreationGui(EntityPlayer player, CoreRoutedPipe pipe, ForgeDirection dir) {
    super(180, 125, 0, 0);
    ItemAmountPipeSign sign = ((ItemAmountPipeSign)pipe.getPipeSign(dir));
    DummyContainer dummy = new DummyContainer(player.inventory, sign.itemTypeInv);
    dummy.addDummySlot(0, 10, 13);
    dummy.addNormalSlotsForPlayerInventory(10, 40);
    this.inventorySlots = dummy;
  }
 
  @Override
  protected void drawGuiContainerBackgroundLayer(float f, int i, int j) {
    BasicGuiHelper.drawGuiBackGround(mc, guiLeft, guiTop, right, bottom, zLevel, true);
    BasicGuiHelper.drawPlayerInventoryBackground(mc, guiLeft + 10, guiTop + 40);
    BasicGuiHelper.drawSlotBackground(mc, guiLeft + 9, guiTop + 12);
  }
}
TOP

Related Classes of logisticspipes.gui.ItemAmountSignCreationGui

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.