Package forestry.factory.gui

Source Code of forestry.factory.gui.ContainerBottler

/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.factory.gui;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.ICrafting;
import net.minecraft.inventory.Slot;

import forestry.core.gui.ContainerLiquidTanks;
import forestry.core.gui.slots.SlotClosed;
import forestry.core.gui.slots.SlotLiquidContainer;
import forestry.factory.gadgets.MachineBottler;

public class ContainerBottler extends ContainerLiquidTanks {

  protected MachineBottler tile;

  public ContainerBottler(InventoryPlayer player, MachineBottler tile) {
    super(tile, tile);

    this.tile = tile;
    this.addSlot(new SlotLiquidContainer(tile, MachineBottler.SLOT_RESOURCE, 116, 19, true));
    this.addSlot(new SlotClosed(tile, MachineBottler.SLOT_PRODUCT, 116, 55));
    this.addSlot(new SlotLiquidContainer(tile, MachineBottler.SLOT_CAN, 26, 38));

    int var3;
    for (var3 = 0; var3 < 3; ++var3)
      for (int var4 = 0; var4 < 9; ++var4)
        this.addSlot(new Slot(player, var4 + var3 * 9 + 9, 8 + var4 * 18, 84 + var3 * 18));

    for (var3 = 0; var3 < 9; ++var3)
      this.addSlot(new Slot(player, var3, 8 + var3 * 18, 142));

  }

  @Override
  public boolean canInteractWith(EntityPlayer entityplayer) {
    return tile.isUseableByPlayer(entityplayer);
  }
}
TOP

Related Classes of forestry.factory.gui.ContainerBottler

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.