Revisión | b72b7043e00b0d5e3b8fd5aaca7feb164b698d09 (tree) |
---|---|
Tiempo | 2012-12-20 16:45:26 |
Autor | mozipi <mozipi@user...> |
Commiter | mozipi |
ChemiCraftAPI.javaが全部staticついてたので修正
@@ -21,62 +21,62 @@ public class ChemiCraftAPI { | ||
21 | 21 | /** |
22 | 22 | * List of compounds names. |
23 | 23 | */ |
24 | - private static ArrayList<String> compoundsNameList = new ArrayList(); | |
24 | + private ArrayList<String> compoundsNameList = new ArrayList(); | |
25 | 25 | |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * List of compounds names(Some kind of language). |
29 | 29 | */ |
30 | - private static ArrayList<String> compoundsLangNameList = new ArrayList(); | |
30 | + private ArrayList<String> compoundsLangNameList = new ArrayList(); | |
31 | 31 | |
32 | 32 | |
33 | 33 | /** |
34 | 34 | * List of compounds the language names. |
35 | 35 | */ |
36 | - private static ArrayList<String> compoundsLangList = new ArrayList(); | |
36 | + private ArrayList<String> compoundsLangList = new ArrayList(); | |
37 | 37 | |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * List of compounds handlers. |
41 | 41 | */ |
42 | - private static ArrayList<ICompoundHandler> compoundHandlers = new ArrayList<ICompoundHandler>(); | |
42 | + private ArrayList<ICompoundHandler> compoundHandlers = new ArrayList<ICompoundHandler>(); | |
43 | 43 | |
44 | 44 | |
45 | 45 | /** |
46 | 46 | * List of item name of handler to compounds. |
47 | 47 | */ |
48 | - private static ArrayList<String> compoundHandlerItemNames = new ArrayList<String>(); | |
48 | + private ArrayList<String> compoundHandlerItemNames = new ArrayList<String>(); | |
49 | 49 | |
50 | 50 | |
51 | 51 | /** |
52 | 52 | * 分解台の素材のリスト |
53 | 53 | */ |
54 | - private static ArrayList<ItemStack> decompositionMaterial = new ArrayList<ItemStack>(); | |
54 | + private ArrayList<ItemStack> decompositionMaterial = new ArrayList<ItemStack>(); | |
55 | 55 | |
56 | 56 | |
57 | 57 | /** |
58 | 58 | * 分解台の結果のリスト |
59 | 59 | */ |
60 | - private static ArrayList<ItemStack[]> decompositionResults = new ArrayList<ItemStack[]>(); | |
60 | + private ArrayList<ItemStack[]> decompositionResults = new ArrayList<ItemStack[]>(); | |
61 | 61 | |
62 | 62 | |
63 | 63 | /** |
64 | 64 | * 化合台の素材のリスト |
65 | 65 | */ |
66 | - private static ArrayList<ItemStack[]> chemicalCombinationMaterials = new ArrayList<ItemStack[]>(); | |
66 | + private ArrayList<ItemStack[]> chemicalCombinationMaterials = new ArrayList<ItemStack[]>(); | |
67 | 67 | |
68 | 68 | |
69 | 69 | /** |
70 | 70 | * 化合台の結果のリスト |
71 | 71 | */ |
72 | - private static ArrayList<ItemStack> chemicalCombinationResult = new ArrayList<ItemStack>(); | |
72 | + private ArrayList<ItemStack> chemicalCombinationResult = new ArrayList<ItemStack>(); | |
73 | 73 | |
74 | 74 | |
75 | 75 | |
76 | 76 | /** |
77 | 77 | * ChemiCraftの化学作業台類のレシピのマネージャー |
78 | 78 | */ |
79 | - private static ChemiCraftCraftingManager chemiCraftCraftingManager = new ChemiCraftCraftingManager(); | |
79 | + private ChemiCraftCraftingManager chemiCraftCraftingManager = new ChemiCraftCraftingManager(); | |
80 | 80 | |
81 | 81 | |
82 | 82 |
@@ -84,7 +84,7 @@ public class ChemiCraftAPI { | ||
84 | 84 | * add compound. |
85 | 85 | * @param name compound name. |
86 | 86 | */ |
87 | - public static void addCompound(String name){ | |
87 | + public void addCompound(String name){ | |
88 | 88 | compoundsNameList.add(name); |
89 | 89 | compoundsLangNameList.add(""); |
90 | 90 | compoundsLangList.add(""); |
@@ -98,7 +98,7 @@ public class ChemiCraftAPI { | ||
98 | 98 | * @param englishName compound name |
99 | 99 | * @param langName compound name(specified language) |
100 | 100 | */ |
101 | - public static void addLangCompound(String lang, String englishName, String langName){ | |
101 | + public void addLangCompound(String lang, String englishName, String langName){ | |
102 | 102 | compoundsNameList.add(englishName); |
103 | 103 | compoundsLangNameList.add(langName); |
104 | 104 | compoundsLangList.add(lang); |
@@ -111,8 +111,8 @@ public class ChemiCraftAPI { | ||
111 | 111 | * @param handlerItemName |
112 | 112 | * @param compoundHandler |
113 | 113 | */ |
114 | - public static void settingCompoundHandler(String handlerItemName, ICompoundHandler compoundHandler){ | |
115 | - ChemiCraftAPI.compoundHandlers.add(compoundHandler); | |
114 | + public void settingCompoundHandler(String handlerItemName, ICompoundHandler compoundHandler){ | |
115 | + compoundHandlers.add(compoundHandler); | |
116 | 116 | compoundHandlerItemNames.add(handlerItemName); |
117 | 117 | } |
118 | 118 |
@@ -123,7 +123,7 @@ public class ChemiCraftAPI { | ||
123 | 123 | * @param material 素材 |
124 | 124 | * @param result 結果 |
125 | 125 | */ |
126 | - public static void addDecompositionRecipe(ItemStack material, ItemStack[] result){ | |
126 | + public void addDecompositionRecipe(ItemStack material, ItemStack[] result){ | |
127 | 127 | if(result.length <= 16){ |
128 | 128 | decompositionMaterial.add(material); |
129 | 129 | decompositionResults.add(result); |
@@ -139,7 +139,7 @@ public class ChemiCraftAPI { | ||
139 | 139 | * @param material 素材 |
140 | 140 | * @param result 結果 |
141 | 141 | */ |
142 | - public static void addChemicalCombinationRecipe(ItemStack[] material, ItemStack result){ | |
142 | + public void addChemicalCombinationRecipe(ItemStack[] material, ItemStack result){ | |
143 | 143 | if(material.length <= 16){ |
144 | 144 | chemicalCombinationMaterials.add(material); |
145 | 145 | chemicalCombinationResult.add(result); |
@@ -149,7 +149,7 @@ public class ChemiCraftAPI { | ||
149 | 149 | } |
150 | 150 | //以下システム関連////////////////////////////////////////////////////// |
151 | 151 | |
152 | - public static ArrayList<ICompoundHandler> getCompoundHandler(){ | |
152 | + public ArrayList<ICompoundHandler> getCompoundHandler(){ | |
153 | 153 | compoundHandlers.trimToSize(); |
154 | 154 | return compoundHandlers; |
155 | 155 |
@@ -157,59 +157,59 @@ public class ChemiCraftAPI { | ||
157 | 157 | |
158 | 158 | |
159 | 159 | |
160 | - public static ArrayList<String> getCompoundHandlerItemName(){ | |
160 | + public ArrayList<String> getCompoundHandlerItemName(){ | |
161 | 161 | compoundHandlerItemNames.trimToSize(); |
162 | 162 | return compoundHandlerItemNames; |
163 | 163 | } |
164 | 164 | |
165 | 165 | |
166 | 166 | |
167 | - public static ArrayList<String> getCompoundsName(){ | |
167 | + public ArrayList<String> getCompoundsName(){ | |
168 | 168 | compoundsNameList.trimToSize(); |
169 | 169 | return compoundsNameList; |
170 | 170 | } |
171 | 171 | |
172 | 172 | |
173 | 173 | |
174 | - public static ArrayList<String> getCompoundsLangName(){ | |
174 | + public ArrayList<String> getCompoundsLangName(){ | |
175 | 175 | compoundsLangNameList.trimToSize(); |
176 | 176 | return compoundsLangNameList; |
177 | 177 | } |
178 | 178 | |
179 | 179 | |
180 | 180 | |
181 | - public static ArrayList<String> getCompoundsLang(){ | |
181 | + public ArrayList<String> getCompoundsLang(){ | |
182 | 182 | compoundsLangList.trimToSize(); |
183 | 183 | return compoundsLangList; |
184 | 184 | } |
185 | 185 | |
186 | 186 | |
187 | 187 | |
188 | - public static ArrayList<ItemStack> getDecompositionMaterial(){ | |
188 | + public ArrayList<ItemStack> getDecompositionMaterial(){ | |
189 | 189 | return decompositionMaterial; |
190 | 190 | } |
191 | 191 | |
192 | 192 | |
193 | 193 | |
194 | - public static ArrayList<ItemStack[]> getDecompositionResult(){ | |
194 | + public ArrayList<ItemStack[]> getDecompositionResult(){ | |
195 | 195 | return decompositionResults; |
196 | 196 | } |
197 | 197 | |
198 | 198 | |
199 | 199 | |
200 | - public static ArrayList<ItemStack[]> getChemicalCombinationMaterial(){ | |
200 | + public ArrayList<ItemStack[]> getChemicalCombinationMaterial(){ | |
201 | 201 | return chemicalCombinationMaterials; |
202 | 202 | } |
203 | 203 | |
204 | 204 | |
205 | 205 | |
206 | - public static ArrayList<ItemStack> getChemicalCombinationResult(){ | |
206 | + public ArrayList<ItemStack> getChemicalCombinationResult(){ | |
207 | 207 | return chemicalCombinationResult; |
208 | 208 | } |
209 | 209 | |
210 | 210 | |
211 | 211 | |
212 | - public static ChemiCraftCraftingManager getCraftingManager(){ | |
212 | + public ChemiCraftCraftingManager getCraftingManager(){ | |
213 | 213 | return chemiCraftCraftingManager; |
214 | 214 | } |
215 | 215 |