Skip to content

Commit 94fb3e4

Browse files
committed
Add item tags to wires
1 parent a52a091 commit 94fb3e4

File tree

1 file changed

+20
-12
lines changed
  • src/main/java/aztech/modern_industrialization/materials/part

1 file changed

+20
-12
lines changed

src/main/java/aztech/modern_industrialization/materials/part/MIParts.java

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
import aztech.modern_industrialization.datagen.tag.TagsToGenerate;
2929
import aztech.modern_industrialization.items.SortOrder;
30+
import java.util.Collections;
31+
import java.util.HashMap;
3032
import java.util.HashSet;
3133
import java.util.List;
3234
import java.util.Map;
@@ -101,20 +103,26 @@ public class MIParts {
101103
public static final PartTemplate[] ITEM_PURE_METAL = new PartTemplate[] { INGOT, NUGGET, TINY_DUST, DUST };
102104

103105
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);
105107
public static final Set<PartKey> TAGGED_PARTS = new HashSet<>(TAGGED_PARTS_LIST);
106108

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+
}
118126

119127
public record CategoryTag(String tag, String englishName) {
120128
public CategoryTag(TagKey<Item> tag, String englishName) {

0 commit comments

Comments
 (0)