OSDN Git Service

ChemiCraftのソース
authorponkotate <ponkotate@users.sourceforge.jp>
Sat, 24 Nov 2012 07:26:00 +0000 (16:26 +0900)
committerponkotate <ponkotate@users.sourceforge.jp>
Sat, 24 Nov 2012 07:26:00 +0000 (16:26 +0900)
src/AtomInfo.java [moved from AtomInfo.java with 100% similarity]
src/Auxiliary.java [moved from Auxiliary.java with 100% similarity]
src/ChemiCraft.java [moved from ChemiCraft.java with 97% similarity]
src/ChemiCraftAPI.java [moved from ChemiCraftAPI.java with 100% similarity]
src/CompoundHandlerTest.java [moved from CompoundHandlerTest.java with 100% similarity]
src/CreativeTabAtoms.java [new file with mode: 0644]
src/ICompoundHandler.java [moved from ICompoundHandler.java with 100% similarity]
src/ItemAtoms.java [moved from ItemAtoms.java with 95% similarity]
src/ItemCompounds.java [moved from ItemCompounds.java with 97% similarity]
src/ItemGasCollectingBottle.java [moved from ItemGasCollectingBottle.java with 93% similarity]
更新履歴.txt [new file with mode: 0644]

similarity index 100%
rename from AtomInfo.java
rename to src/AtomInfo.java
similarity index 100%
rename from Auxiliary.java
rename to src/Auxiliary.java
similarity index 97%
rename from ChemiCraft.java
rename to src/ChemiCraft.java
index 8f6fea6..5444edd 100644 (file)
@@ -4,6 +4,7 @@ import java.util.ArrayList;
 import java.util.Properties;
 
 import net.minecraft.src.Block;
+import net.minecraft.src.CreativeTabs;
 import net.minecraft.src.Item;
 import net.minecraft.src.ItemStack;
 import net.minecraftforge.common.Configuration;
@@ -22,6 +23,8 @@ import cpw.mods.fml.common.registry.LanguageRegistry;
 public class ChemiCraft
 {
 
+       public static final CreativeTabs tabAtoms = new CreativeTabAtoms("tabAtoms");
+
        public static final String[] atomsName = {
                "Hydrogen", "Helium","Lithium","Beryllium","Boron","Carbon","Nitrogen","Oxygen","Fluorine","Neon",
                "Sodium","Magnesium","Aluminium","Silicon","Phosphorus","Sulfur","Chlorine","Argon","Potassium","Calcium",
@@ -69,6 +72,7 @@ public class ChemiCraft
        @Mod.Init
        public void chemiLoadMethod(FMLInitializationEvent event)
        {
+
                //\89»\8d\87\95¨\82Ì\92Ç\89Á
                ChemiCraftAPI.addLangCompound("ja_JP", "Salt", "\89\96");
        }
similarity index 100%
rename from ChemiCraftAPI.java
rename to src/ChemiCraftAPI.java
diff --git a/src/CreativeTabAtoms.java b/src/CreativeTabAtoms.java
new file mode 100644 (file)
index 0000000..582de5f
--- /dev/null
@@ -0,0 +1,28 @@
+package net.minecraft.src.ChemiCraft;
+
+import net.minecraft.src.*;
+import cpw.mods.fml.common.Side;
+import cpw.mods.fml.common.asm.SideOnly;
+
+public class CreativeTabAtoms extends CreativeTabs{
+
+
+       public CreativeTabAtoms(String type) {
+               super(type);
+       }
+
+       @Override
+       @SideOnly(Side.CLIENT)
+       public int getTabIconItemIndex()
+       {
+               return ChemiCraft.itemGasCollectingBottle.shiftedIndex;
+       }
+       @Override
+       @SideOnly(Side.CLIENT)
+       public String getTranslatedTabLabel()
+       {
+               return "TabAtoms";
+       }
+
+}
similarity index 95%
rename from ItemAtoms.java
rename to src/ItemAtoms.java
index c0afa7e..5d7f727 100644 (file)
@@ -17,7 +17,7 @@ public class ItemAtoms extends Item {
         this.maxStackSize = 1;
         this.setHasSubtypes(true);
         this.setMaxDamage(0);
-        this.setCreativeTab(CreativeTabs.tabMaterials);
+        this.setCreativeTab(ChemiCraft.tabAtoms);
     }
 
     @SideOnly(Side.CLIENT)
similarity index 97%
rename from ItemCompounds.java
rename to src/ItemCompounds.java
index 36bad92..543de67 100644 (file)
@@ -17,7 +17,7 @@ public class ItemCompounds extends Item {
                this.maxStackSize = 1;
                this.setHasSubtypes(true);
                this.setMaxDamage(0);
-               this.setCreativeTab(CreativeTabs.tabMaterials);
+               this.setCreativeTab(ChemiCraft.tabAtoms);
        }
 
        @Override
similarity index 93%
rename from ItemGasCollectingBottle.java
rename to src/ItemGasCollectingBottle.java
index 9fd8d53..db7781e 100644 (file)
@@ -10,7 +10,7 @@ public class ItemGasCollectingBottle extends Item {
                super(id);
                this.setMaxStackSize(1);
                this.setMaxDamage(2);
-               this.setCreativeTab(CreativeTabs.tabMaterials);
+               this.setCreativeTab(ChemiCraft.tabAtoms);
        }
 
        @Override
diff --git a/更新履歴.txt b/更新履歴.txt
new file mode 100644 (file)
index 0000000..b3e5f72
--- /dev/null
@@ -0,0 +1,11 @@
+2012/11/24 ponkotate
+\81EAtomInfo\82ð\8dX\90V
+\81EAuxiliary\82ð\8dX\90V
+\81EChemiCraft\82ð\8dX\90V
+\81EChemiCraftAPI\82ð\8dX\90V
+\81ECompoundHandlerTest\82ð\8dX\90V
+\81ECreativeTabAtoms\82ð\8dX\90V
+\81EICompoundHandler\82ð\8dX\90V
+\81EItemAtoms\82ð\8dX\90V
+\81EItemCompounds\82ð\8dX\90V
+\81EItemGasCollectingBottle\82ð\8dX\90V
\ No newline at end of file