/**
* Copyright (c) Lambda Innovation, 2013-2016
* This file is part of the AcademyCraft mod.
* https://github.com/LambdaInnovation/AcademyCraft
* Licensed under GPLv3, see project root for more information.
*/
package cn.academy.energy.block.wind;
import cn.academy.core.container.TechUIContainer;
import cn.academy.energy.api.IFItemManager;
import cn.academy.energy.block.SlotIFItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
/**
* @author WeAthFolD
*/
public class ContainerWindGenBase extends TechUIContainer<TileWindGenBase> {
public ContainerWindGenBase(EntityPlayer _player, TileWindGenBase _tile) {
super(_player, _tile);
initInventory();
}
private void initInventory() {
this.addSlotToContainer(new SlotIFItem(tile, 0, 42, 80));
mapPlayerInventory();
SlotGroup gInv = gRange(1, 1+36), gBattery = gSlots(0);
addTransferRule(gBattery, gInv);
addTransferRule(gInv, IFItemManager.instance::isSupported, gBattery);
}
}