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.*;

public class TestItemTagsProvider extends CommonItemTagsProvider {
	
	public TestItemTagsProvider(GenerationData data, CommonBlockTagsProvider blockProvider) {
		super(data, blockProvider);
	}
	
	@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));
		});
	}
	
}

@@ -190,16 +190,91 @@
 .item.*;
+%0Aimport net.minecraft.tags.ItemTags;%0Aimport net.minecraftforge.common.Tags;
 %0A%0Apublic
@@ -462,16 +462,48 @@
 );%0A%09%7D%0A%09%0A
+%09@SuppressWarnings(%22unchecked%22)%0A
 %09@Overri
@@ -995,14 +995,367 @@
 ));%0A
-
 %09%09%7D);%0A
+%09%09%0A%09%09getBuilder(TestTags.Items.TEST_TAG_4) //%0A%09%09%09%09.addItemEntry(Items.BLACKSTONE) //%0A%09%09%09%09.addTag(ItemTags.LOGS) //%0A%09%09%09%09.add(Items.FURNACE, Items.SMOKER, Items.BLAST_FURNACE) //%0A%09%09%09%09.addTags(Tags.Items.CHESTS_TRAPPED, Tags.Items.CHESTS_WOODEN) //%0A%09%09%09%09.addOptional(Items.ANCIENT_DEBRIS.getRegistryName()) //%0A%09%09%09%09.addOptionalTag(ItemTags.ANVIL.getName());%0A
 %09%7D%0A%09

Add some generation stuff to the test tag 4