Applied-Energistics-2-tiler.../core/CreativeTabFacade.java

35 lines
694 B
Java
Raw Normal View History

2014-02-01 23:29:07 +01:00
package appeng.core;
import net.minecraft.creativetab.CreativeTabs;
2014-02-09 02:34:52 +01:00
import net.minecraft.item.Item;
2014-02-01 23:29:07 +01:00
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" );
}
2014-02-09 02:34:52 +01:00
@Override
public Item getTabIconItem()
{
return getIconItemStack().getItem();
}
2014-02-01 23:29:07 +01:00
@Override
public ItemStack getIconItemStack()
{
return ((ItemFacade) AEApi.instance().items().itemFacade.item()).getCreativeTabIcon();
}
public static void init()
{
instance = new CreativeTabFacade();
}
}