Package powercrystals.minefactoryreloaded.gui.container

Source Code of powercrystals.minefactoryreloaded.gui.container.ContainerPlanter

package powercrystals.minefactoryreloaded.gui.container;

import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
import powercrystals.minefactoryreloaded.gui.slot.SlotAcceptUpgrade;
import powercrystals.minefactoryreloaded.gui.slot.SlotFake;
import powercrystals.minefactoryreloaded.tile.base.TileEntityFactoryPowered;

public class ContainerPlanter extends ContainerUpgradable
{
  public ContainerPlanter(TileEntityFactoryPowered te, InventoryPlayer inv)
  {
    super(te, inv);
  }
 
  @Override
  protected void addSlots()
  {
    //area control slots
    addSlotToContainer(new SlotFake(_te, 0, 8, 33));
    addSlotToContainer(new SlotFake(_te, 1, 26, 33));
    addSlotToContainer(new SlotFake(_te, 2, 44, 33));
    addSlotToContainer(new SlotFake(_te, 3, 8, 51));
    addSlotToContainer(new SlotFake(_te, 4, 26, 51));
    addSlotToContainer(new SlotFake(_te, 5, 44, 51));
    addSlotToContainer(new SlotFake(_te, 6, 8, 69));
    addSlotToContainer(new SlotFake(_te, 7, 26, 69));
    addSlotToContainer(new SlotFake(_te, 8, 44, 69));
   
    //upgrade slot
    addSlotToContainer(new SlotAcceptUpgrade(_te, 9, 152, 79));
   
    //resource slots
    int xStart = 65;
    int yStart = 15;
   
    for(int i = 0; i < 4; i++)
    {
      for(int j = 0; j < 4; j++)
      {
        addSlotToContainer(new Slot(_te, 10 + i*4 + j, xStart + 18 * j, yStart + 18*i));
      }
    }
  }
TOP

Related Classes of powercrystals.minefactoryreloaded.gui.container.ContainerPlanter

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.