Skip to content

Commit

Permalink
chore: update json formatting style to be consistent with datagen pro…
Browse files Browse the repository at this point in the history
…duced by Minecraft
  • Loading branch information
Elenterius committed May 29, 2024
1 parent f925bca commit 8c8b8a4
Show file tree
Hide file tree
Showing 1,515 changed files with 45,067 additions and 45,066 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ ij_groovy_wrap_long_lines = false

[{*.har,*.json,mcmod.info,pack.mcmeta}]
indent_size = 2
indent_style = space
max_line_length = 160
ij_json_array_wrapping = normal
ij_json_keep_blank_lines_in_code = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public CompletableFuture<?> run(CachedOutput cache) {
HashingOutputStream hashingOutputStream = new HashingOutputStream(Hashing.sha1(), outputStream);
JsonWriter jsonWriter = new JsonWriter(new OutputStreamWriter(hashingOutputStream, StandardCharsets.UTF_8));
jsonWriter.setSerializeNulls(false);
jsonWriter.setIndent("\t");
jsonWriter.setIndent(" ");

try {
GsonHelper.writeValue(jsonWriter, json, null); //no comparator is used to maintain the order of how the translations were added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/acid_fluid_block"
}
}
"variants": {
"": {
"model": "biomancy:block/acid_fluid_block"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/adult_permeable_membrane"
}
}
"variants": {
"": {
"model": "biomancy:block/adult_permeable_membrane"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"variants": {
"orientation=x_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle",
"y": 90
},
"orientation=x_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 270
},
"orientation=x_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 90
},
"orientation=y_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle",
"x": 90
},
"orientation=y_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"x": 270
},
"orientation=y_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"x": 90
},
"orientation=z_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle"
},
"orientation=z_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane"
},
"orientation=z_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 180
}
}
"variants": {
"orientation=x_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle",
"y": 90
},
"orientation=x_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 270
},
"orientation=x_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 90
},
"orientation=y_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle",
"x": 90
},
"orientation=y_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"x": 270
},
"orientation=y_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"x": 90
},
"orientation=z_middle": {
"model": "biomancy:block/adult_permeable_membrane_pane_middle"
},
"orientation=z_negative": {
"model": "biomancy:block/adult_permeable_membrane_pane"
},
"orientation=z_positive": {
"model": "biomancy:block/adult_permeable_membrane_pane",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/baby_permeable_membrane"
}
}
"variants": {
"": {
"model": "biomancy:block/baby_permeable_membrane"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"variants": {
"orientation=x_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle",
"y": 90
},
"orientation=x_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 270
},
"orientation=x_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 90
},
"orientation=y_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle",
"x": 90
},
"orientation=y_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"x": 270
},
"orientation=y_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"x": 90
},
"orientation=z_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle"
},
"orientation=z_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane"
},
"orientation=z_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 180
}
}
"variants": {
"orientation=x_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle",
"y": 90
},
"orientation=x_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 270
},
"orientation=x_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 90
},
"orientation=y_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle",
"x": 90
},
"orientation=y_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"x": 270
},
"orientation=y_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"x": 90
},
"orientation=z_middle": {
"model": "biomancy:block/baby_permeable_membrane_pane_middle"
},
"orientation=z_negative": {
"model": "biomancy:block/baby_permeable_membrane_pane"
},
"orientation=z_positive": {
"model": "biomancy:block/baby_permeable_membrane_pane",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/bio_forge"
}
}
"variants": {
"": {
"model": "biomancy:block/bio_forge"
}
}
}
10 changes: 5 additions & 5 deletions src/generated/resources/assets/biomancy/blockstates/bio_lab.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/bio_lab"
}
}
"variants": {
"": {
"model": "biomancy:block/bio_lab"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"variants": {
"hanging=false": {
"model": "biomancy:block/bio_lantern_blue"
},
"hanging=true": {
"model": "biomancy:block/bio_lantern_blue_hanging"
}
}
"variants": {
"hanging=false": {
"model": "biomancy:block/bio_lantern_blue"
},
"hanging=true": {
"model": "biomancy:block/bio_lantern_blue_hanging"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"variants": {
"hanging=false": {
"model": "biomancy:block/bio_lantern_yellow"
},
"hanging=true": {
"model": "biomancy:block/bio_lantern_yellow_hanging"
}
}
"variants": {
"hanging=false": {
"model": "biomancy:block/bio_lantern_yellow"
},
"hanging=true": {
"model": "biomancy:block/bio_lantern_yellow_hanging"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/bloomlight"
}
}
"variants": {
"": {
"model": "biomancy:block/bloomlight"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/chiseled_flesh"
}
}
"variants": {
"": {
"model": "biomancy:block/chiseled_flesh"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/decomposer"
}
}
"variants": {
"": {
"model": "biomancy:block/decomposer"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/digester"
}
}
"variants": {
"": {
"model": "biomancy:block/digester"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variants": {
"": {
"model": "biomancy:block/fibrous_flesh"
}
}
"variants": {
"": {
"model": "biomancy:block/fibrous_flesh"
}
}
}
Loading

0 comments on commit 8c8b8a4

Please sign in to comment.