| 
27 | 27 | 
 
  | 
28 | 28 | import aztech.modern_industrialization.datagen.tag.TagsToGenerate;  | 
29 | 29 | import aztech.modern_industrialization.items.SortOrder;  | 
 | 30 | +import java.util.Collections;  | 
 | 31 | +import java.util.HashMap;  | 
30 | 32 | import java.util.HashSet;  | 
31 | 33 | import java.util.List;  | 
32 | 34 | import java.util.Map;  | 
@@ -101,20 +103,26 @@ public class MIParts {  | 
101 | 103 |     public static final PartTemplate[] ITEM_PURE_METAL = new PartTemplate[] { INGOT, NUGGET, TINY_DUST, DUST };  | 
102 | 104 | 
 
  | 
103 | 105 |     public static final List<PartKey> TAGGED_PARTS_LIST = PartKeyProvider.of(BLOCK, DUST, GEAR, INGOT, NUGGET, ORE, PLATE, ROD,  | 
104 |  | -            TINY_DUST, RAW_METAL, RAW_METAL_BLOCK);  | 
 | 106 | +            TINY_DUST, RAW_METAL, RAW_METAL_BLOCK, WIRE);  | 
105 | 107 |     public static final Set<PartKey> TAGGED_PARTS = new HashSet<>(TAGGED_PARTS_LIST);  | 
106 | 108 | 
 
  | 
107 |  | -    public static final Map<PartKey, CategoryTag> CATEGORY_TAGS = Map.of(  | 
108 |  | -            BLOCK.key(), new CategoryTag(Tags.Items.STORAGE_BLOCKS, "Storage Blocks"),  | 
109 |  | -            DUST.key(), new CategoryTag(Tags.Items.DUSTS, "Dusts"),  | 
110 |  | -            GEAR.key(), new CategoryTag("c:gears", "Gears"),  | 
111 |  | -            INGOT.key(), new CategoryTag(Tags.Items.INGOTS, "Ingots"),  | 
112 |  | -            NUGGET.key(), new CategoryTag(Tags.Items.NUGGETS, "Nuggets"),  | 
113 |  | -            PLATE.key(), new CategoryTag("c:plates", "Plates"),  | 
114 |  | -            ROD.key(), new CategoryTag(Tags.Items.RODS, "Rods"),  | 
115 |  | -            RAW_METAL.key(), new CategoryTag(Tags.Items.RAW_MATERIALS, "Raw Ores"),  | 
116 |  | -            TINY_DUST.key(), new CategoryTag("c:tiny_dusts", "Tiny Dusts"),  | 
117 |  | -            RAW_METAL_BLOCK.key(), new CategoryTag(Tags.Items.STORAGE_BLOCKS, "Storage Blocks"));  | 
 | 109 | +    public static final Map<PartKey, CategoryTag> CATEGORY_TAGS;  | 
 | 110 | + | 
 | 111 | +    static {  | 
 | 112 | +        Map<PartKey, CategoryTag> categoryTags = new HashMap<>();  | 
 | 113 | +        categoryTags.put(BLOCK.key(), new CategoryTag(Tags.Items.STORAGE_BLOCKS, "Storage Blocks"));  | 
 | 114 | +        categoryTags.put(DUST.key(), new CategoryTag(Tags.Items.DUSTS, "Dusts"));  | 
 | 115 | +        categoryTags.put(GEAR.key(), new CategoryTag("c:gears", "Gears"));  | 
 | 116 | +        categoryTags.put(INGOT.key(), new CategoryTag(Tags.Items.INGOTS, "Ingots"));  | 
 | 117 | +        categoryTags.put(NUGGET.key(), new CategoryTag(Tags.Items.NUGGETS, "Nuggets"));  | 
 | 118 | +        categoryTags.put(PLATE.key(), new CategoryTag("c:plates", "Plates"));  | 
 | 119 | +        categoryTags.put(ROD.key(), new CategoryTag(Tags.Items.RODS, "Rods"));  | 
 | 120 | +        categoryTags.put(RAW_METAL.key(), new CategoryTag(Tags.Items.RAW_MATERIALS, "Raw Ores"));  | 
 | 121 | +        categoryTags.put(TINY_DUST.key(), new CategoryTag("c:tiny_dusts", "Tiny Dusts"));  | 
 | 122 | +        categoryTags.put(RAW_METAL_BLOCK.key(), new CategoryTag(Tags.Items.STORAGE_BLOCKS, "Storage Blocks"));  | 
 | 123 | +        categoryTags.put(WIRE.key(), new CategoryTag("c:wires", "Wires"));  | 
 | 124 | +        CATEGORY_TAGS = Collections.unmodifiableMap(categoryTags);  | 
 | 125 | +    }  | 
118 | 126 | 
 
  | 
119 | 127 |     public record CategoryTag(String tag, String englishName) {  | 
120 | 128 |         public CategoryTag(TagKey<Item> tag, String englishName) {  | 
 | 
0 commit comments