From aa6edd4e1b6217c81e9a9d892ef15db29cfaf18d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Thu, 27 Nov 2014 17:18:47 +1100 Subject: [PATCH] Readded the BOP creative tab --- .../common/util/inventory/CreativeTabBOP.java | 18 +++++++++++++++--- .../assets/biomesoplenty/lang/en_US.lang | 2 ++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java b/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java index 40973da47..190835036 100644 --- a/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java +++ b/src/main/java/biomesoplenty/common/util/inventory/CreativeTabBOP.java @@ -9,10 +9,22 @@ package biomesoplenty.common.util.inventory; import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.init.Blocks; import net.minecraft.item.Item; -//TODO: Do this properly once Forge is updated -public class CreativeTabBOP +//TODO: Fix icon +public class CreativeTabBOP extends CreativeTabs { - public static final CreativeTabs instance = CreativeTabs.tabMisc; + public static final CreativeTabs instance = new CreativeTabBOP(CreativeTabs.getNextID(), "tabBiomesOPlenty"); + + private CreativeTabBOP(int index, String label) + { + super(index, label); + } + + @Override + public Item getTabIconItem() + { + return Item.getItemFromBlock(Blocks.sapling); + } } diff --git a/src/main/resources/assets/biomesoplenty/lang/en_US.lang b/src/main/resources/assets/biomesoplenty/lang/en_US.lang index 202a26614..a7abe4017 100644 --- a/src/main/resources/assets/biomesoplenty/lang/en_US.lang +++ b/src/main/resources/assets/biomesoplenty/lang/en_US.lang @@ -1,3 +1,5 @@ +itemGroup.tabBiomesOPlenty=Biomes O' Plenty + tile.ash_block.name=Ash Block tile.bamboo.name=Bamboo