OSDN Git Service

また代理コミット
[chemicraft/chemicraft.git] / src / ChemiCraftAPI.java
1 package net.minecraft.src.ChemiCraft;
2
3 import java.util.ArrayList;
4
5 public class ChemiCraftAPI {
6
7         public static ChemiCraftAPI instance = new ChemiCraftAPI();
8
9         private boolean addLanguage = false;
10         private static ArrayList<String> compoundsNameList = new ArrayList();
11         private static ArrayList<String> compoundsLangNameList = new ArrayList();
12         private static ArrayList<String> compoundsLangList = new ArrayList();
13
14         public static void addCompound(String name){
15                 compoundsNameList.add(name);
16         }
17
18         public static void addLangCompound(String lang, String name){
19                 compoundsLangNameList.add(name);
20                 compoundsLangList.add(lang);
21         }
22
23         public static ArrayList<String> getCompoundsName(){
24                 compoundsNameList.trimToSize();
25                 return compoundsNameList;
26         }
27
28         public static ArrayList<String> getCompoundsLangName(){
29                 compoundsLangNameList.trimToSize();
30                 return compoundsLangNameList;
31         }
32
33         public static ArrayList<String> getCompoundsLang(){
34                 compoundsLangList.trimToSize();
35                 return compoundsLangList;
36         }
37
38 }