// Path: src/main/java/party/lemons/anima/config/ModConstants.java
// public class ModConstants
// {
// 	public static final String MODID = "anima";
// 	public static final String MODNAME = "Anima Mundi";
// 	public static final String MODVERSION = "0.2.1";
// 	public static final String UPDATEURL = "https://www.lemons.party/anima/update.json";
// }
// 
// Path: src/main/java/party/lemons/anima/crafting/AnimaTab.java
// public class AnimaTab extends CreativeTabs
// {
// 	public static AnimaTab Tab = new AnimaTab();
// 
// 	public AnimaTab()
// 	{
// 		super("anima");
// 	}
// 
// 
// 	@Override
// 	public ItemStack getTabIconItem()
// 	{
// 		NBTTagCompound tags =  new NBTTagCompound();
// 		tags.setInteger("pos1_x", 1);
// 		ItemStack stack = new ItemStack(AnimaItems.LINKER);
// 		stack.setTagCompound(tags);
// 		return stack;
// 	}
// }


import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import party.lemons.anima.config.ModConstants;
import party.lemons.anima.content.block.tileentity.*;
import party.lemons.anima.crafting.AnimaTab;
import java.util.ArrayList;
import static net.minecraftforge.fml.common.registry.GameRegistry.*;
	}

	@SubscribeEvent
	public static void registerItems(RegistryEvent.Register<Item> event)
	{
		blocks.forEach(block -> event.getRegistry().register(new ItemBlock(block).setRegistryName(block.getRegistryName())));
	}

	@SubscribeEvent
	@SideOnly(Side.CLIENT)
	public static void registerModels(ModelRegistryEvent event)
	{
		blocks.forEach(
				block->ModelLoader.setCustomModelResourceLocation(
						Item.getItemFromBlock(block),
						0,
						new ModelResourceLocation(block.getRegistryName(), "inventory"))
		);

	}

	private static void registerTileEntities()
	{
		//Hrmmmm
		registerTileEntity(TileEntityExtractor.class, ModConstants.MODID + ":extractor");
		registerTileEntity(TileEntityDestroyer.class, ModConstants.MODID + ":destroyer");
		registerTileEntity(TileEntityLinkNode.class, ModConstants.MODID + ":linknode");
		registerTileEntity(TileEntityInserter.class, ModConstants.MODID + ":inserter");
		registerTileEntity(TileEntitySucker.class, ModConstants.MODID + ":sucker");
		registerTileEntity(TileEntitySplitter.class, ModConstants.MODID + ":splitter");
// Path: src/main/java/party/lemons/anima/config/ModConstants.java
// public class ModConstants
// {
// 	public static final String MODID = "anima";
// 	public static final String MODNAME = "Anima Mundi";
// 	public static final String MODVERSION = "0.2.1";
// 	public static final String UPDATEURL = "https://www.lemons.party/anima/update.json";
// }
// 
// Path: src/main/java/party/lemons/anima/crafting/AnimaTab.java
// public class AnimaTab extends CreativeTabs
// {
// 	public static AnimaTab Tab = new AnimaTab();
// 
// 	public AnimaTab()
// 	{
// 		super("anima");
// 	}
// 
// 
// 	@Override
// 	public ItemStack getTabIconItem()
// 	{
// 		NBTTagCompound tags =  new NBTTagCompound();
// 		tags.setInteger("pos1_x", 1);
// 		ItemStack stack = new ItemStack(AnimaItems.LINKER);
// 		stack.setTagCompound(tags);
// 		return stack;
// 	}
// }


// Path: src/main/java/party/lemons/anima/content/block/AnimaBlocks.java
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraftforge.client.event.ModelRegistryEvent;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.Side;
import party.lemons.anima.config.ModConstants;
import party.lemons.anima.content.block.tileentity.*;
import party.lemons.anima.crafting.AnimaTab;
import java.util.ArrayList;
import static net.minecraftforge.fml.common.registry.GameRegistry.*;

	}

	@SubscribeEvent
	public static void registerItems(RegistryEvent.Register<Item> event)
	{
		blocks.forEach(block -> event.getRegistry().register(new ItemBlock(block).setRegistryName(block.getRegistryName())));
	}

	@SubscribeEvent
	@SideOnly(Side.CLIENT)
	public static void registerModels(ModelRegistryEvent event)
	{
		blocks.forEach(
				block->ModelLoader.setCustomModelResourceLocation(
						Item.getItemFromBlock(block),
						0,
						new ModelResourceLocation(block.getRegistryName(), "inventory"))
		);

	}

	private static void registerTileEntities()
	{
		//Hrmmmm
		registerTileEntity(TileEntityExtractor.class, ModConstants.MODID + ":extractor");
		registerTileEntity(TileEntityDestroyer.class, ModConstants.MODID + ":destroyer");
		registerTileEntity(TileEntityLinkNode.class, ModConstants.MODID + ":linknode");
		registerTileEntity(TileEntityInserter.class, ModConstants.MODID + ":inserter");
		registerTileEntity(TileEntitySucker.class, ModConstants.MODID + ":sucker");
		registerTileEntity(TileEntitySplitter.class, ModConstants.MODID + ":splitter");
		registerTileEntity(TileEntitySorter.class, ModConstants.MODID + ":sorter");