1package com.fs.starfarer.api.loading;
3import java.util.ArrayList;
6import com.fs.starfarer.api.ModSpecAPI;
10 public static enum Type {
27 private String text1 =
"No description... yet", text2 =
"No description... yet", text3 =
"No description... yet";
28 private String text4 =
null;
29 private String text5 =
null;
37 return id +
"_" + type.name();
56 return text4 !=
null && !text4.isEmpty();
59 return text5 !=
null && !text5.isEmpty();
68 int index = text1.indexOf(
'\n');
70 return text1.substring(0, index);
93 List<String> result =
new ArrayList<String>();
94 if (text ==
null)
return result;
96 String [] temp = text.split(
"\\n");
97 for (String p : temp) {
99 if (p.isEmpty())
continue;
107 if (text1 ==
null || text1.equals(
"")) text1 =
"No description... yet";
108 this.text1 = text1.trim();
116 if (text2 ==
null || text2.equals(
"")) text2 =
"No description... yet";
117 this.text2 = text2.trim();
125 if (text3 ==
null || text3.equals(
"")) text3 =
"No description... yet";
126 this.text3 = text3.trim();
131 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
136 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
141 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
150 this.sourceMod = sourceMod;
Description(String id, Type type)
List< String > getText1Paras()
List< String > getText5Paras()
List< String > getText4Paras()
List< String > getText3Paras()
List< String > getText2Paras()
void setText3(String text3)
ModSpecAPI getSourceMod()
String getText1FirstPara()
void setText1(String text1)
void setText5(String text5)
List< String > getParas(String text)
void setSourceMod(ModSpecAPI sourceMod)
void setText2(String text2)
void setText4(String text4)