File tree Expand file tree Collapse file tree
enchanting-core/src/generated/java/com/github/jikoo/planarenchanting
enchanting-generator/src/main/java/com/github/jikoo/planarenchanting/generator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616@ NullMarked
1717final class BakedRepairableData {
1818
19- private BakedRepairableData () {
20- }
19+ private BakedRepairableData () {}
2120
2221 static Map <Key , Key > getTags () {
2322 Map <Key , Key > map = new HashMap <>();
Original file line number Diff line number Diff line change 1818@ NullMarked
1919final class BakedEnchantableData {
2020
21- private BakedEnchantableData () {
22- }
21+ private BakedEnchantableData () {}
2322
2423 static Map <Integer , Set <Key >> get () {
2524 Map <Integer , Set <Key >> map = new HashMap <>();
Original file line number Diff line number Diff line change 1616 *
1717 * <p>This file was generated from Minecraft 1.21.11. Regenerate it rather than modify.</p>
1818 */
19- @ Generated ("com.github.jikoo.planarenchanting.generator.impl.EnchantabilitiesGenerator " )
19+ @ Generated ("com.github.jikoo.planarenchanting.generator.impl.EnchantabilityCategoryGenerator " )
2020@ NullMarked
2121public final class EnchantabilityCategory {
2222
@@ -55,8 +55,7 @@ public final class EnchantabilityCategory {
5555 @ ApiStatus .Experimental
5656 public static final Enchantability ARMADILLO_SCUTE_ARMOR = add ("ARMADILLO_SCUTE_ARMOR" , 10 );
5757
58- private EnchantabilityCategory () {
59- }
58+ private EnchantabilityCategory () {}
6059
6160 /**
6261 * Safely try to access an {@link Enchantability} category by name.
Original file line number Diff line number Diff line change @@ -91,6 +91,9 @@ protected String tweakFormatting(String content) {
9191 "${docOpen} ${content} */"
9292 );
9393
94+ // Inline empty bodies.
95+ content = content .replaceAll ("\\ {\n \\ s*?}\n " , "{}\n " );
96+
9497 // I like blank lines at the top and bottom of classes.
9598 // Top allows for empty enum declaration.
9699 content = content .replaceAll ("(\n \\ S.*\\ {\n (\\ s+;\n )?)" , "$1\n " );
You can’t perform that action at this time.
0 commit comments