diff options
| author | Draknyte1 <Draknyte1@hotmail.com> | 2016-04-24 03:22:02 +1000 |
|---|---|---|
| committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-04-24 03:22:02 +1000 |
| commit | 8926a92fa3175a497d623a788b0b36f12d1369b4 (patch) | |
| tree | 7cbf617dee6023e86fef1e7e00e5df15e70aadc2 /src/Java/miscutil/core/creative | |
| parent | e59cebaf22e175252dd6d5dd633b3d985c87ba14 (diff) | |
| download | GT5-Unofficial-8926a92fa3175a497d623a788b0b36f12d1369b4.tar.gz GT5-Unofficial-8926a92fa3175a497d623a788b0b36f12d1369b4.tar.bz2 GT5-Unofficial-8926a92fa3175a497d623a788b0b36f12d1369b4.zip | |
Refactor no. 3
I think that's enough until 1.1.x
Diffstat (limited to 'src/Java/miscutil/core/creative')
5 files changed, 95 insertions, 0 deletions
diff --git a/src/Java/miscutil/core/creative/AddToCreativeTab.java b/src/Java/miscutil/core/creative/AddToCreativeTab.java new file mode 100644 index 0000000000..5f73ca75c7 --- /dev/null +++ b/src/Java/miscutil/core/creative/AddToCreativeTab.java @@ -0,0 +1,23 @@ +package miscutil.core.creative; + +import miscutil.core.lib.CORE; +import net.minecraft.creativetab.CreativeTabs; + +public class AddToCreativeTab { + + public static CreativeTabs tabBlock; + public static CreativeTabs tabMisc; + public static CreativeTabs tabCombat; + public static CreativeTabs tabTools; + public static CreativeTabs tabMachines; + + public static void initialiseTabs(){ + tabBlock = new MiscUtilCreativeTabBlock("MiscUtilBlockTab"); + tabMisc = new MiscUtilCreativeTabMisc("MiscUtilMiscTab"); + //tabCombat = new MiscUtilCreativeTabCombat("MiscUtilCombatTab"); + tabTools = new MiscUtilCreativeTabTools("MiscUtilToolsTab"); + if (CORE.DEBUG){ + tabMachines = new MiscUtilCreativeTabMachines("MiscUtilMachineTab"); + } + } +} diff --git a/src/Java/miscutil/core/creative/MiscUtilCreativeTabBlock.java b/src/Java/miscutil/core/creative/MiscUtilCreativeTabBlock.java new file mode 100644 index 0000000000..b1b330f93c --- /dev/null +++ b/src/Java/miscutil/core/creative/MiscUtilCreativeTabBlock.java @@ -0,0 +1,18 @@ +package miscutil.core.creative; + +import miscutil.core.block.ModBlocks; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; + +public class MiscUtilCreativeTabBlock extends CreativeTabs { + + public MiscUtilCreativeTabBlock(String lable) { + super(lable); + } + + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(ModBlocks.blockBloodSteel); + } + +} diff --git a/src/Java/miscutil/core/creative/MiscUtilCreativeTabMachines.java b/src/Java/miscutil/core/creative/MiscUtilCreativeTabMachines.java new file mode 100644 index 0000000000..53d0e92a89 --- /dev/null +++ b/src/Java/miscutil/core/creative/MiscUtilCreativeTabMachines.java @@ -0,0 +1,18 @@ +package miscutil.core.creative; + +import miscutil.core.block.ModBlocks; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; + +public class MiscUtilCreativeTabMachines extends CreativeTabs { + + public MiscUtilCreativeTabMachines(String lable) { + super(lable); + } + + @Override + public Item getTabIconItem() { + return Item.getItemFromBlock(ModBlocks.blockGriefSaver); + } + +} diff --git a/src/Java/miscutil/core/creative/MiscUtilCreativeTabMisc.java b/src/Java/miscutil/core/creative/MiscUtilCreativeTabMisc.java new file mode 100644 index 0000000000..16de793be8 --- /dev/null +++ b/src/Java/miscutil/core/creative/MiscUtilCreativeTabMisc.java @@ -0,0 +1,18 @@ +package miscutil.core.creative; + +import miscutil.core.item.ModItems; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; + +public class MiscUtilCreativeTabMisc extends CreativeTabs { + + public MiscUtilCreativeTabMisc(String lable) { + super(lable); + } + + @Override + public Item getTabIconItem() { + return ModItems.itemIngotBloodSteel; + } + +} diff --git a/src/Java/miscutil/core/creative/MiscUtilCreativeTabTools.java b/src/Java/miscutil/core/creative/MiscUtilCreativeTabTools.java new file mode 100644 index 0000000000..eb0bf320cc --- /dev/null +++ b/src/Java/miscutil/core/creative/MiscUtilCreativeTabTools.java @@ -0,0 +1,18 @@ +package miscutil.core.creative; + +import miscutil.core.item.ModItems; +import net.minecraft.creativetab.CreativeTabs; +import net.minecraft.item.Item; + +public class MiscUtilCreativeTabTools extends CreativeTabs { + + public MiscUtilCreativeTabTools(String lable) { + super(lable); + } + + @Override + public Item getTabIconItem() { + return ModItems.itemStaballoyPickaxe; + } + +} |
