package info.u_team.u_team_test.data.provider;

import java.util.stream.IntStream;

import info.u_team.u_team_core.data.*;
import info.u_team.u_team_test.init.TestTags;
import net.minecraft.item.*;
import net.minecraft.tags.ItemTags;
import net.minecraftforge.common.Tags;

public class TestItemTagsProvider extends CommonItemTagsProvider {
	
	public TestItemTagsProvider(GenerationData data, CommonBlockTagsProvider blockProvider) {
		super(data, blockProvider);
	}
	
	@SuppressWarnings("unchecked")
	@Override
	protected void registerTags() {
		copy(TestTags.Blocks.TEST_TAG_1, TestTags.Items.TEST_TAG_1);
		copy(TestTags.Blocks.TEST_TAG_2, TestTags.Items.TEST_TAG_2);
		
		getBuilder(TestTags.Items.TEST_TAG_3).add(Items.BEACON).addTag(TestTags.Items.TEST_TAG_2).add(Items.BARREL).add(Items.BEACON, Items.ACACIA_BUTTON);
		
		IntStream.range(0, 10).forEach(index -> {
			getBuilder(TestTags.Items.TEST_TAG_3).add(Items.BEACON).addTag(TestTags.Items.TEST_TAG_2).add(Item.getItemById(index + 1));
		});
		
		getBuilder(TestTags.Items.TEST_TAG_4) //
				.addItemEntry(Items.BLACKSTONE) //
				.addTag(ItemTags.LOGS) //
				.add(Items.FURNACE, Items.SMOKER, Items.BLAST_FURNACE) //
				.addTags(Tags.Items.CHESTS_TRAPPED, Tags.Items.CHESTS_WOODEN) //
				.addOptional(Items.ANCIENT_DEBRIS.getRegistryName()) //
				.addOptionalTag(ItemTags.ANVIL.getName());
	}
	
}

@@ -466,40 +466,8 @@
 %7D%0A%09%0A
-%09@SuppressWarnings(%22unchecked%22)%0A
 %09@Ov
@@ -688,35 +688,32 @@
 tems.BEACON).add
-Tag
 (TestTags.Items.
@@ -891,19 +891,16 @@
 CON).add
-Tag
 (TestTag
@@ -1017,17 +1017,8 @@
 .add
-ItemEntry
 (Ite
@@ -1043,19 +1043,16 @@
 %09%09%09%09.add
-Tag
 (ItemTag
@@ -1132,20 +1132,16 @@
 %09%09%09%09.add
-Tags
 (Tags.It

Remove the unchecked