mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-05 08:29:09 +01:00
26 lines
713 B
Java
26 lines
713 B
Java
|
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);
|
||
|
}
|
||
|
|
||
|
public Item getTabIconItem(){
|
||
|
return InitItems.itemFoods;
|
||
|
}
|
||
|
|
||
|
public ItemStack getIconItemStack(){
|
||
|
return new ItemStack(this.getTabIconItem(), 1, TheFoods.CHOCOLATE.ordinal());
|
||
|
}
|
||
|
}
|