|
|
|
@ -13,6 +13,7 @@ import engine.ConfigParsing.EffectsData.EffectData;
@@ -13,6 +13,7 @@ import engine.ConfigParsing.EffectsData.EffectData;
|
|
|
|
|
import engine.ConfigParsing.EffectsData.Mod; |
|
|
|
|
import engine.gameManager.ConfigManager; |
|
|
|
|
import java.io.BufferedReader; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.FileReader; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
@ -41,15 +42,19 @@ public class EffectsParser {
@@ -41,15 +42,19 @@ public class EffectsParser {
|
|
|
|
|
CreateBlocks(compiledData); |
|
|
|
|
} |
|
|
|
|
public static String[] readLines(String filename) throws IOException { |
|
|
|
|
FileReader fileReader = new FileReader(filename); |
|
|
|
|
BufferedReader bufferedReader = new BufferedReader(fileReader); |
|
|
|
|
List<String> lines = new ArrayList<>(); |
|
|
|
|
String line; |
|
|
|
|
while ((line = bufferedReader.readLine()) != null) { |
|
|
|
|
lines.add(line); |
|
|
|
|
} |
|
|
|
|
bufferedReader.close(); |
|
|
|
|
return lines.toArray(new String[0]); |
|
|
|
|
File effectsCfg = new File(EffectsPath); |
|
|
|
|
return effectsCfg.list(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//FileReader fileReader = new FileReader(filename);
|
|
|
|
|
//BufferedReader bufferedReader = new BufferedReader(fileReader);
|
|
|
|
|
//List<String> lines = new ArrayList<>();
|
|
|
|
|
// String line;
|
|
|
|
|
//while ((line = bufferedReader.readLine()) != null) {
|
|
|
|
|
// lines.add(line);
|
|
|
|
|
//}
|
|
|
|
|
//bufferedReader.close();
|
|
|
|
|
//return lines.toArray(new String[0]);
|
|
|
|
|
} |
|
|
|
|
public static void CreateBlocks(ArrayList<ArrayList<String>> compiledData) |
|
|
|
|
{ |
|
|
|
|