MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / Moods

Method Moods

src/main/java/PEP/Moods.java:42–60  ·  view source on GitHub ↗

Creates a new instance of Moods

()

Source from the content-addressed store, hash-verified

40
41 /** Creates a new instance of Moods */
42 private Moods() {
43 String moodFile="/lang/"+Client.Config.getInstance().lang+".moods.txt";
44 Vector vMood[]=new StringLoader().stringLoader(moodFile, 2);
45
46 if (vMood==null) vMood=new StringLoader().stringLoader("/lang/en.moods.txt", 2);
47 if (vMood==null) {
48 //System.out.println("Cant't load mood names");
49 moodKey=null;
50 moodKey=new Vector();
51 moodValue=null;
52 moodValue=new Vector();
53 } else {
54 moodKey=(Vector)vMood[0];
55 moodValue=(Vector)vMood[1];
56 }
57
58 moodKey.trimToSize();
59 moodValue.trimToSize();
60 }
61
62 Vector moodKey;
63 Vector moodValue;

Callers

nothing calls this directly

Calls 2

stringLoaderMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected