aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorTechnus <daniel112092@gmail.com>2017-03-13 22:18:07 +0100
committerTechnus <daniel112092@gmail.com>2017-03-13 22:18:07 +0100
commit1617757c872d1e3d3059b724073056b56d4c711e (patch)
tree6c401603b3db892eab7fe5b542a51ecb51b673ff /src/main/java
parenteb9ef387ee6e3e4f38afb88297b8ffc3b49ac77d (diff)
downloadGT5-Unofficial-1617757c872d1e3d3059b724073056b56d4c711e.tar.gz
GT5-Unofficial-1617757c872d1e3d3059b724073056b56d4c711e.tar.bz2
GT5-Unofficial-1617757c872d1e3d3059b724073056b56d4c711e.zip
Add that to creative tab too
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/technus/tectech/TecTech.java7
-rw-r--r--src/main/java/com/github/technus/tectech/casing/GT_Block_CasingsTT.java12
2 files changed, 16 insertions, 3 deletions
diff --git a/src/main/java/com/github/technus/tectech/TecTech.java b/src/main/java/com/github/technus/tectech/TecTech.java
index 7a0f5c51ca..4c5f0d451d 100644
--- a/src/main/java/com/github/technus/tectech/TecTech.java
+++ b/src/main/java/com/github/technus/tectech/TecTech.java
@@ -2,6 +2,8 @@ package com.github.technus.tectech;
import com.github.technus.tectech.auxiliary.Reference;
import com.github.technus.tectech.auxiliary.TecTechConfig;
import com.github.technus.tectech.blocks.QuantumGlass;
+import com.github.technus.tectech.casing.GT_Block_CasingsTT;
+import com.github.technus.tectech.casing.GT_Container_CasingsTT;
import com.github.technus.tectech.proxy.CommonProxy;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
@@ -98,6 +100,7 @@ public class TecTech {
public void RegisterThingsInTabs(){
QuantumGlass.INSTANCE.setCreativeTab(mainTab);//TODO? COPY PASTE GT CLASSES TO ADD MY THINGS TO CREATIVE TAB
+ GT_Container_CasingsTT.sBlockCasingsTT.setCreativeTab(mainTab);
}
/**
@@ -106,7 +109,5 @@ public class TecTech {
* @param pEvent
*/
@EventHandler
- public void serverLoad(FMLServerStartingEvent pEvent) {
- }
-
+ public void serverLoad(FMLServerStartingEvent pEvent) {}
}
diff --git a/src/main/java/com/github/technus/tectech/casing/GT_Block_CasingsTT.java b/src/main/java/com/github/technus/tectech/casing/GT_Block_CasingsTT.java
index d15a0aa8d7..d7f8a197d1 100644
--- a/src/main/java/com/github/technus/tectech/casing/GT_Block_CasingsTT.java
+++ b/src/main/java/com/github/technus/tectech/casing/GT_Block_CasingsTT.java
@@ -1,6 +1,7 @@
package com.github.technus.tectech.casing;
import com.github.technus.tectech.CustomItemList;
+import com.github.technus.tectech.TecTech;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import gregtech.api.enums.Textures;
@@ -9,10 +10,14 @@ import gregtech.api.util.GT_LanguageManager;
import gregtech.common.blocks.GT_Block_Casings_Abstract;
import gregtech.common.blocks.GT_Material_Casings;
import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.creativetab.CreativeTabs;
+import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraft.world.IBlockAccess;
+import java.util.List;
+
/**
* Created by danie_000 on 03.10.2016.
*/
@@ -100,4 +105,11 @@ public class GT_Block_CasingsTT
public int colorMultiplier(IBlockAccess aWorld, int aX, int aY, int aZ) {
return super.colorMultiplier(aWorld, aX, aY, aZ);
}
+
+ @Override
+ public void getSubBlocks(Item aItem, CreativeTabs par2CreativeTabs, List aList) {
+ for(int i=3;i<=9;i++){
+ aList.add(new ItemStack(aItem,1,i));
+ }
+ }
}