1package com.fs.starfarer.api.loading;
3import java.util.ArrayList;
8 public static enum Type {
24 private String text1 =
"No description... yet", text2 =
"No description... yet", text3 =
"No description... yet";
25 private String text4 =
null;
33 return id +
"_" + type.name();
44 return text4 !=
null && !text4.isEmpty();
53 int index = text1.indexOf(
'\n');
55 return text1.substring(0, index);
62 List<String> result =
new ArrayList<String>();
63 if (text1 ==
null)
return result;
65 String [] temp = text1.split(
"\\n");
66 for (String p : temp) {
68 if (p.isEmpty())
continue;
76 if (text1 ==
null || text1.equals(
"")) text1 =
"No description... yet";
77 this.text1 = text1.trim();
85 if (text2 ==
null || text2.equals(
"")) text2 =
"No description... yet";
86 this.text2 = text2.trim();
94 if (text3 ==
null || text3.equals(
"")) text3 =
"No description... yet";
95 this.text3 = text3.trim();
100 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
105 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
110 if (str ==
null || str.isEmpty() || str.equals(
"No description... yet"))
return false;
Description(String id, Type type)
List< String > getText1Paras()
void setText3(String text3)
String getText1FirstPara()
void setText1(String text1)
void setText2(String text2)
void setText4(String text4)