OSDN Git Service

ChemiCraftAPI.javaが全部staticついてたので修正
authormozipi <mozipi@users.sourceforge.jp>
Thu, 20 Dec 2012 07:45:26 +0000 (16:45 +0900)
committermozipi <mozipi@users.sourceforge.jp>
Thu, 20 Dec 2012 07:45:26 +0000 (16:45 +0900)
common/chemicraft/ChemiCraftAPI.java

index b56438d..d4bc948 100644 (file)
@@ -21,62 +21,62 @@ public class ChemiCraftAPI {
        /**
         * List of compounds names.
         */
-       private static ArrayList<String> compoundsNameList = new ArrayList();
+       private ArrayList<String> compoundsNameList = new ArrayList();
 
 
        /**
         * List of compounds names(Some kind of language).
         */
-       private static ArrayList<String> compoundsLangNameList = new ArrayList();
+       private ArrayList<String> compoundsLangNameList = new ArrayList();
 
 
        /**
         * List of compounds the language names.
         */
-       private static ArrayList<String> compoundsLangList = new ArrayList();
+       private ArrayList<String> compoundsLangList = new ArrayList();
 
 
        /**
         * List of compounds handlers.
         */
-       private static ArrayList<ICompoundHandler> compoundHandlers = new ArrayList<ICompoundHandler>();
+       private ArrayList<ICompoundHandler> compoundHandlers = new ArrayList<ICompoundHandler>();
 
 
        /**
         * List of item name of handler to compounds.
         */
-       private static ArrayList<String> compoundHandlerItemNames = new ArrayList<String>();
+       private ArrayList<String> compoundHandlerItemNames = new ArrayList<String>();
 
 
        /**
         * 分解台の素材のリスト
         */
-       private static ArrayList<ItemStack> decompositionMaterial = new ArrayList<ItemStack>();
+       private ArrayList<ItemStack> decompositionMaterial = new ArrayList<ItemStack>();
 
 
        /**
         * 分解台の結果のリスト
         */
-       private static ArrayList<ItemStack[]> decompositionResults = new ArrayList<ItemStack[]>();
+       private ArrayList<ItemStack[]> decompositionResults = new ArrayList<ItemStack[]>();
 
 
        /**
         * 化合台の素材のリスト
         */
-       private static ArrayList<ItemStack[]> chemicalCombinationMaterials = new ArrayList<ItemStack[]>();
+       private ArrayList<ItemStack[]> chemicalCombinationMaterials = new ArrayList<ItemStack[]>();
 
 
        /**
         * 化合台の結果のリスト
         */
-       private static ArrayList<ItemStack> chemicalCombinationResult = new ArrayList<ItemStack>();
+       private ArrayList<ItemStack> chemicalCombinationResult = new ArrayList<ItemStack>();
 
 
 
        /**
         * ChemiCraftの化学作業台類のレシピのマネージャー
         */
-       private static ChemiCraftCraftingManager chemiCraftCraftingManager = new ChemiCraftCraftingManager();
+       private ChemiCraftCraftingManager chemiCraftCraftingManager = new ChemiCraftCraftingManager();
 
 
 
@@ -84,7 +84,7 @@ public class ChemiCraftAPI {
         * add compound.
         * @param name compound name.
         */
-       public static void addCompound(String name){
+       public void addCompound(String name){
                compoundsNameList.add(name);
                compoundsLangNameList.add("");
                compoundsLangList.add("");
@@ -98,7 +98,7 @@ public class ChemiCraftAPI {
         * @param englishName compound name
         * @param langName compound name(specified language)
         */
-       public static void addLangCompound(String lang, String englishName, String langName){
+       public void addLangCompound(String lang, String englishName, String langName){
                compoundsNameList.add(englishName);
                compoundsLangNameList.add(langName);
                compoundsLangList.add(lang);
@@ -111,8 +111,8 @@ public class ChemiCraftAPI {
         * @param handlerItemName
         * @param compoundHandler
         */
-       public static void settingCompoundHandler(String handlerItemName, ICompoundHandler compoundHandler){
-               ChemiCraftAPI.compoundHandlers.add(compoundHandler);
+       public void settingCompoundHandler(String handlerItemName, ICompoundHandler compoundHandler){
+               compoundHandlers.add(compoundHandler);
                compoundHandlerItemNames.add(handlerItemName);
        }
 
@@ -123,7 +123,7 @@ public class ChemiCraftAPI {
         * @param material 素材
         * @param result 結果
         */
-       public static void addDecompositionRecipe(ItemStack material, ItemStack[] result){
+       public void addDecompositionRecipe(ItemStack material, ItemStack[] result){
                if(result.length <= 16){
                        decompositionMaterial.add(material);
                        decompositionResults.add(result);
@@ -139,7 +139,7 @@ public class ChemiCraftAPI {
         * @param material 素材
         * @param result 結果
         */
-       public static void addChemicalCombinationRecipe(ItemStack[] material, ItemStack result){
+       public void addChemicalCombinationRecipe(ItemStack[] material, ItemStack result){
                if(material.length <= 16){
                        chemicalCombinationMaterials.add(material);
                        chemicalCombinationResult.add(result);
@@ -149,7 +149,7 @@ public class ChemiCraftAPI {
        }
        //以下システム関連//////////////////////////////////////////////////////
 
-       public static ArrayList<ICompoundHandler> getCompoundHandler(){
+       public ArrayList<ICompoundHandler> getCompoundHandler(){
                compoundHandlers.trimToSize();
                return compoundHandlers;
 
@@ -157,59 +157,59 @@ public class ChemiCraftAPI {
 
 
 
-       public static ArrayList<String> getCompoundHandlerItemName(){
+       public ArrayList<String> getCompoundHandlerItemName(){
                compoundHandlerItemNames.trimToSize();
                return compoundHandlerItemNames;
        }
 
 
 
-       public static ArrayList<String> getCompoundsName(){
+       public ArrayList<String> getCompoundsName(){
                compoundsNameList.trimToSize();
                return compoundsNameList;
        }
 
 
 
-       public static ArrayList<String> getCompoundsLangName(){
+       public ArrayList<String> getCompoundsLangName(){
                compoundsLangNameList.trimToSize();
                return compoundsLangNameList;
        }
 
 
 
-       public static ArrayList<String> getCompoundsLang(){
+       public ArrayList<String> getCompoundsLang(){
                compoundsLangList.trimToSize();
                return compoundsLangList;
        }
 
 
 
-       public static ArrayList<ItemStack> getDecompositionMaterial(){
+       public ArrayList<ItemStack> getDecompositionMaterial(){
                return decompositionMaterial;
        }
 
 
 
-       public static ArrayList<ItemStack[]> getDecompositionResult(){
+       public ArrayList<ItemStack[]> getDecompositionResult(){
                return decompositionResults;
        }
 
 
 
-       public static ArrayList<ItemStack[]> getChemicalCombinationMaterial(){
+       public ArrayList<ItemStack[]> getChemicalCombinationMaterial(){
                return chemicalCombinationMaterials;
        }
 
 
 
-       public static ArrayList<ItemStack> getChemicalCombinationResult(){
+       public ArrayList<ItemStack> getChemicalCombinationResult(){
                return chemicalCombinationResult;
        }
 
 
 
-       public static ChemiCraftCraftingManager getCraftingManager(){
+       public ChemiCraftCraftingManager getCraftingManager(){
                return chemiCraftCraftingManager;
        }