ActuallyAdditions/src/main/java/ellpeck/someprettyrandomstuff/creative/CreativeTab.java

28 lines
756 B
Java
Raw Normal View History

2015-01-30 20:16:32 +01:00
package ellpeck.someprettyrandomstuff.creative;
import ellpeck.someprettyrandomstuff.items.InitItems;
import ellpeck.someprettyrandomstuff.items.metalists.TheFoods;
import ellpeck.someprettyrandomstuff.util.Util;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class CreativeTab extends CreativeTabs{
public static CreativeTab instance = new CreativeTab();
public CreativeTab(){
super(Util.MOD_ID_LOWER);
2015-01-30 20:16:32 +01:00
}
@Override
2015-01-30 20:16:32 +01:00
public Item getTabIconItem(){
return InitItems.itemFoods;
}
@Override
2015-01-30 20:16:32 +01:00
public ItemStack getIconItemStack(){
return new ItemStack(this.getTabIconItem(), 1, TheFoods.SUBMARINE_SANDWICH.ordinal());
2015-01-30 20:16:32 +01:00
}
}