-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 1.19.4, removed 1.16.5 - 5.6.2
- Loading branch information
Showing
66 changed files
with
153 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#include "mcitems.ftl"> | ||
NbtUtils.writeBlockState(${mappedBlockToBlockStateCode(input$blockstate)}).getAsString() |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${input$direction}.get3DDataValue() |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Minecraft.getInstance().gameDirectory |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Direction.from3DDataValue(${opt.toInt(input$number)}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
src/fabric-1.19.4/procedures/string_to_blockstate.java.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*@BlockState*/new Object() { | ||
public BlockState getBlockState(String _nbt) { | ||
try { | ||
return NbtUtils.readBlockState(TagParser.parseTag(_nbt)); | ||
} catch (CommandSyntaxException e) { | ||
${JavaModName}.LOGGER.error(e); | ||
return Blocks.AIR.defaultBlockState(); | ||
} | ||
} | ||
}.getBlockState(${input$string}) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
file: File | ||
jsonobject: com.google.gson.JsonObject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$JOBJVAR?replace("local:", "")?replace("global:", "")}.add(${input$name}, ${field$VAR?replace("local:", "")?replace("global:", "")}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$JOBJVAR?replace("local:", "")?replace("global:", "")}.addProperty(${input$name}, ${input$value}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<#include "mcitems.ftl"> | ||
NbtUtils.writeBlockState(${mappedBlockToBlockStateCode(input$blockstate)}).getAsString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
try { | ||
org.apache.commons.io.FileUtils.copyFile(${field$VAR?replace("local:", "")?replace("global:", "")}, new File(${input$toLocation})); | ||
} catch (IOException e) { | ||
${JavaModName}.LOGGER.error(e); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
try { | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.getParentFile().mkdirs(); | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.createNewFile(); | ||
} catch (IOException exception) { | ||
exception.printStackTrace(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${input$direction}.get3DDataValue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.exists() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
new File(${input$location}, File.separator + ${input$name}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.getName() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.get(${input$name}).getAsBoolean() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.get(${input$name}).getAsDouble() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$JOBJVAR?replace("local:", "")?replace("global:", "")}.get(${input$name}).getAsJsonObject() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}.get(${input$name}).getAsString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(${field$VAR?replace("local:", "")?replace("global:", "")}.get(${input$name}) != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
try { | ||
org.apache.commons.io.FileUtils.moveFile(${field$VAR?replace("local:", "")?replace("global:", "")}, new File(${input$toLocation})); | ||
} catch (IOException e) { | ||
${JavaModName}.LOGGER.error(e); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Direction.from3DDataValue(${opt.toInt(input$number)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(new Object(){ | ||
public JsonObject parse(String rawJson){ | ||
try { | ||
return new Gson().fromJson(rawJson, com.google.gson.JsonObject.class); | ||
} catch (Exception e) { | ||
${JavaModName}.LOGGER.error(e); | ||
return new Gson().fromJson("{}", com.google.gson.JsonObject.class); | ||
} | ||
} | ||
}.parse(${input$json})) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
File.separator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
try { | ||
BufferedReader bufferedReader = new BufferedReader(new FileReader(${field$VAR?replace("local:", "")?replace("global:", "")})); | ||
StringBuilder jsonstringbuilder = new StringBuilder(); | ||
String line; | ||
while((line = bufferedReader.readLine()) != null) { | ||
jsonstringbuilder.append(line); | ||
} | ||
bufferedReader.close(); | ||
|
||
${field$JOBJVAR?replace("local:", "")?replace("global:", "")} = new Gson().fromJson(jsonstringbuilder.toString(), com.google.gson.JsonObject.class); | ||
${statement$values} | ||
|
||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
try { | ||
BufferedReader ${field$VAR?replace("local:", "")?replace("global:", "")}Reader = new BufferedReader(new FileReader(${field$VAR?replace("local:", "")?replace("global:", "")})); | ||
String stringiterator = ""; | ||
while((stringiterator = ${field$VAR?replace("local:", "")?replace("global:", "")}Reader.readLine()) != null) { | ||
${statement$foreach} | ||
} | ||
${field$VAR?replace("local:", "")?replace("global:", "")}Reader.close(); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stringiterator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*@BlockState*/new Object() { | ||
public BlockState getBlockState(String _nbt) { | ||
try { | ||
return NbtUtils.readBlockState(TagParser.parseTag(_nbt)); | ||
} catch (CommandSyntaxException e) { | ||
${JavaModName}.LOGGER.error(e); | ||
return Blocks.AIR.defaultBlockState(); | ||
} | ||
} | ||
}.getBlockState(${input$string}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
${field$JOBJVAR?replace("local:", "")?replace("global:", "")}.toString() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
try { | ||
FileUtils.copyURLToFile(new URL(${url}), ${field$VAR?replace("local:", "")?replace("global:", "")}, ${input$connectionTimeout}, ${input$readTimeout); | ||
} catch (IOException e) { | ||
e.printStackTrace(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
Gson mainGSONBuilderVariable = new GsonBuilder().setPrettyPrinting().create(); | ||
|
||
try { | ||
FileWriter fileWriter = new FileWriter(${field$VAR?replace("local:", "")?replace("global:", "")}); | ||
fileWriter.write(mainGSONBuilderVariable.toJson(${field$JOBJVAR?replace("local:", "")?replace("global:", "")})); | ||
fileWriter.close(); | ||
} catch (IOException exception) { | ||
exception.printStackTrace(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
${field$VAR?replace("local:", "")?replace("global:", "")}bw.write(${input$text}); | ||
<#if input$newLine == "(true)"> | ||
${field$VAR?replace("local:", "")?replace("global:", "")}bw.newLine(); | ||
</#if> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
try { | ||
FileWriter ${field$VAR?replace("local:", "")?replace("global:", "")}writer = new FileWriter(${field$VAR?replace("local:", "")?replace("global:", "")}); | ||
BufferedWriter ${field$VAR?replace("local:", "")?replace("global:", "")}bw = new BufferedWriter(${field$VAR?replace("local:", "")?replace("global:", "")}writer); | ||
|
||
${statement$text} | ||
|
||
${field$VAR?replace("local:", "")?replace("global:", "")}bw.close(); | ||
${field$VAR?replace("local:", "")?replace("global:", "")}writer.close(); | ||
} catch (IOException exception) { | ||
exception.printStackTrace(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
defaultvalue: new File("") | ||
scopes: | ||
local: | ||
init: ${var.getType().getJavaType(generator.getWorkspace())} ${var.getName()} = ${var.getType().getDefaultValue(generator.getWorkspace())}; | ||
get: ${name} | ||
set: ${name} = ${opt.removeParentheses(value)}; | ||
global_session: | ||
init: public static File ${var.getName()} = ${var.getValue()}; | ||
get: ${JavaModName}Variables.${name} | ||
set: ${JavaModName}Variables.${name} = ${opt.removeParentheses(value)}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
defaultvalue: new com.google.gson.JsonObject() | ||
scopes: | ||
local: | ||
init: ${var.getType().getJavaType(generator.getWorkspace())} ${var.getName()} = ${var.getType().getDefaultValue(generator.getWorkspace())}; | ||
get: ${name} | ||
set: ${name} = ${opt.removeParentheses(value)}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"file-manager": { | ||
"latest": "5.6.1" | ||
"latest": "5.6.2" | ||
} | ||
} |