-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
arraylist: ArrayList |
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$var}.add(${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 @@ | ||
${input$var}.clear(); |
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$var}.contains(${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 @@ | ||
${input$var}.get(${opt.toInt(input$index)}) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_arraylist.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof ArrayList _al ? _al : new ArrayList<>()) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_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 @@ | ||
/*@BlockState*/(${input$var}.get(${opt.toInt(input$index)}) instanceof BlockState _bs ? _bs : Blocks.AIR.defaultBlockState()) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_direction.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof Direction _d ? _d : Direction.UP) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_entity.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof Entity _e ? _e : null) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_file.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof File _f ? _f : new File("")) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_itemstack.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 @@ | ||
/*@ItemStack*/(${input$var}.get(${opt.toInt(input$index)}) instanceof ItemStack _bs ? _bs : ItemStack.EMPTY) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_jsonobject.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof JsonObject _jb ? _jb : new JsonObject()) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_logic.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof Boolean _b ? _b : false) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_number.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof Double _d ? _d : 0) |
1 change: 1 addition & 0 deletions
1
src/forge-1.20.1/procedures/arraylist_get_value_as_string.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 @@ | ||
(${input$var}.get(${opt.toInt(input$index)}) instanceof String _s ? _s : "") |
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$var}.isEmpty() |
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$var}.remove(${opt.toInt(input$index)}); |
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$var}.set(${opt.toInt(input$index)}, ${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 @@ | ||
${input$var}.size() |
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 ArrayList<>() | ||
scopes: | ||
local: | ||
init: List<Object> ${var.getName()} = ${var.getType().getDefaultValue(generator.getWorkspace())}; | ||
get: ${name} | ||
set: ${name} = (${javaType}) ${opt.removeParentheses(value)}; | ||
global_session: | ||
init: public static List<Object> ${var.getName()} = ${var.getValue()}; | ||
get: ${JavaModName}Variables.${name} | ||
set: ${JavaModName}Variables.${name} = ${opt.removeParentheses(value)}; |