Utility resource fix
This commit is contained in:
parent
83590857e4
commit
044d3c2062
68 changed files with 260 additions and 258 deletions
|
@ -87,13 +87,15 @@ public class ModelHelper {
|
|||
return out;
|
||||
}
|
||||
|
||||
private void printStates(String name) {
|
||||
private void printStates(String name) throws IOException {
|
||||
BufferedWriter wr = new BufferedWriter(new FileWriter(new File("./output/states.txt")));
|
||||
for (String state: Helper.BLOCKSTATES)
|
||||
{
|
||||
String rname = state.replace(Helper.MASK, name);
|
||||
String onlyName = rname.substring(0, rname.indexOf('.'));
|
||||
String finName = name.replace('_', ' ') + " " + state.substring(0, state.indexOf('.')).replace(Helper.MASK, "").replace('_', ' ').trim();
|
||||
System.out.println("\"block.betternether." + onlyName + "\": \"" + capitalize(finName) + "\",");
|
||||
wr.write(" \"block.betterend." + onlyName + "\": \"" + capitalize(finName) + "\",\n");
|
||||
}
|
||||
wr.close();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue