package com.eloraam.redpower.control;

import java.util.List;

import com.eloraam.redpower.core.CoverLib;
import com.eloraam.redpower.core.CreativeExtraTabs;
import com.eloraam.redpower.wiring.MicroPlacementWire;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.ItemStack;

public class MicroPlacementRibbon extends MicroPlacementWire {
    @Override
    public String getMicroName(int hb, int lb) {
        return hb != 12 && lb != 0 ? null : "tile.ribbon";
    }

    @Override
    public void addCreativeItems(int hb, CreativeTabs tab, List<ItemStack> items) {
        if (tab == null || tab == CreativeExtraTabs.tabWires
            || tab == CreativeTabs.tabAllSearch) {
            switch (hb) {
                case 12:
                    items.add(new ItemStack(CoverLib.blockCoverPlate, 1, 3072));
            }
        }
    }
}
