Applied-Energistics-2-tiler.../core/CreativeTabFacade.java
2014-02-08 19:34:52 -06:00

35 lines
No EOL
694 B
Java

package appeng.core;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import appeng.api.AEApi;
import appeng.items.parts.ItemFacade;
public final class CreativeTabFacade extends CreativeTabs
{
public static CreativeTabFacade instance = null;
public CreativeTabFacade() {
super( "appliedenergistics2.facades" );
}
@Override
public Item getTabIconItem()
{
return getIconItemStack().getItem();
}
@Override
public ItemStack getIconItemStack()
{
return ((ItemFacade) AEApi.instance().items().itemFacade.item()).getCreativeTabIcon();
}
public static void init()
{
instance = new CreativeTabFacade();
}
}