mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 11:59:11 +00:00
40 lines
865 B
Java
40 lines
865 B
Java
package binnie.botany;
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.init.Blocks;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
|
|
|
public class CreativeTabBotany extends CreativeTabs {
|
|
public static CreativeTabs instance = new CreativeTabBotany();
|
|
|
|
@Override
|
|
public ItemStack getIconItemStack() {
|
|
return new ItemStack(Blocks.RED_FLOWER, 1, 5);
|
|
}
|
|
|
|
public CreativeTabBotany() {
|
|
super("Botany");
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public String getTranslatedTabLabel() {
|
|
return this.getTabLabel();
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public String getTabLabel() {
|
|
return Botany.proxy.localise("tab.botany");
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public ItemStack getTabIconItem() {
|
|
return new ItemStack(Blocks.YELLOW_FLOWER);
|
|
}
|
|
|
|
}
|