Skip to content

Commit

Permalink
Add tags for Filters for #286
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Aug 18, 2024
1 parent 0556314 commit d9c6bee
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 1.21 2024-06-19T13:01:23.0452301 LaserIO Item Tags
// 1.21.1 2024-08-18T17:29:13.4737966 LaserIO Item Tags
82b9a7dae6ddacedd44e7762b68ca8e0594f1c01 data/c/tags/item/tools/wrench.json
82b9a7dae6ddacedd44e7762b68ca8e0594f1c01 data/c/tags/item/wrenches.json
fe233e1d1b6d29c99e4e7f9ec5de223dd17076de data/laserio/tags/item/filters.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.21 2024-08-04T13:44:14.7251544 Languages: en_us for mod: laserio
// 1.21.1 2024-08-18T17:29:13.4747969 Languages: en_us for mod: laserio
85b7b822654083ab1c8be08c584bb15e38a364a0 assets/laserio/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-06-19T13:01:23.0467312 Loot Tables
// 1.21.1 2024-08-18T17:29:13.475297 Loot Tables
c5726937d6920d471a92b3b78bc18928c3075f2a data/laserio/loot_table/blocks/laser_connector.json
f12657c7a130011834944b79a82f612b9a7c2969 data/laserio/loot_table/blocks/laser_connector_advanced.json
36898cfead2a1119ea9c15f8c84710a5eee0762d data/laserio/loot_table/blocks/laser_node.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-06-19T13:01:23.0457306 Item Models: laserio
// 1.21.1 2024-08-18T17:29:13.4742968 Item Models: laserio
7e73cb282b46a70b1f5087d60802c8011e1f1f3b assets/laserio/models/item/card_cloner.json
52e0efd1f22b88ec99436633dce050d27b229fc1 assets/laserio/models/item/card_holder.json
e437c48fed9e84ae9f2efcc79fae92735ab6b2eb assets/laserio/models/item/filter_basic.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// 1.21 2024-06-19T13:01:23.0437293 LaserIO Tags
// 1.21.1 2024-08-18T17:29:13.472295 LaserIO Tags
7f05d88fd7507637835354bcacc306dd87166efe data/minecraft/tags/block/mineable/pickaxe.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.21 2024-07-24T18:58:34.073988 Recipes
// 1.21.1 2024-08-18T17:29:13.4757978 Recipes
2bfe7ae02c3b8f3e2ba4b4b230cd9138a3716e05 data/laserio/advancement/recipes/misc/card_chemical.json
731ad1bf1e8f5267014620275e52cef2e50da371 data/laserio/advancement/recipes/misc/card_chemical_nbtclear.json
7ef2ab2b3bae7b8e07e3a805c87c11c2f9b1ec26 data/laserio/advancement/recipes/misc/card_cloner.json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// 1.21 2024-06-19T13:01:23.0482327 Block States: laserio
// 1.21.1 2024-08-18T17:29:13.477299 Block States: laserio
9 changes: 9 additions & 0 deletions src/generated/resources/data/laserio/tags/item/filters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"values": [
"laserio:filter_basic",
"laserio:filter_count",
"laserio:filter_tag",
"laserio:filter_mod",
"laserio:filter_nbt"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public class LaserIOItemTags extends ItemTagsProvider {
public static final TagKey<Item> TOOLS_WRENCH = forgeTag("tools/wrench");
public static final TagKey<Item> CIRCUITS_BASIC = forgeTag("circuits/basic");

public static final TagKey<Item> FILTERS_TAG = ItemTags.create(ResourceLocation.fromNamespaceAndPath(LaserIO.MODID, "filters"));


private static TagKey<Item> forgeTag(String name) {
return ItemTags.create(ResourceLocation.fromNamespaceAndPath("c", name));
}
Expand All @@ -33,6 +36,12 @@ protected void addTags(HolderLookup.Provider provider) {
.add(Registration.Laser_Wrench.get());
tag(TOOLS_WRENCH)
.add(Registration.Laser_Wrench.get());
tag(FILTERS_TAG)
.add(Registration.Filter_Basic.get())
.add(Registration.Filter_Count.get())
.add(Registration.Filter_Tag.get())
.add(Registration.Filter_Mod.get())
.add(Registration.Filter_NBT.get());
}

@Override
Expand Down

0 comments on commit d9c6bee

Please sign in to comment.