reworked creative tabs for all mods
This commit is contained in:
parent
fda3a1de12
commit
5fe80517a7
1 changed files with 31 additions and 0 deletions
31
src/dark/core/common/DMCreativeTab.java
Normal file
31
src/dark/core/common/DMCreativeTab.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package dark.core.common;
|
||||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class DMCreativeTab extends CreativeTabs
|
||||
{
|
||||
public ItemStack itemStack = new ItemStack(Item.ingotIron, 1, 0);
|
||||
|
||||
public static DMCreativeTab tabAutomation = new DMCreativeTab("Automation");
|
||||
public static DMCreativeTab tabIndustrial = new DMCreativeTab("Industrial");
|
||||
public static DMCreativeTab tabHydrualic = new DMCreativeTab("Hydrualic");
|
||||
|
||||
public DMCreativeTab(String label)
|
||||
{
|
||||
super(label);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getIconItemStack()
|
||||
{
|
||||
return this.itemStack;
|
||||
}
|
||||
|
||||
public void setIconItemStack(ItemStack stack)
|
||||
{
|
||||
this.itemStack = stack;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue