// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


import com.team.kalstuff.KalStuff;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.registry.EntityRegistry;
package com.team.kalstuff.entity;



public class KalStuffEntities
{
	/**
	 * Initializes and registers all entities from the mod.
	 */
	public static void setup()
	{
		registerEntities();
	}

	public static void registerEntities()
	{
		registerEntity(EntityDuck.class, "duck", 80, 3, true, 0xFFFFFF, 0xE0C494);
	}

	// bits of this code were borrowed from Choonster because he wrote it very
	// neatly!
	// https://github.com/Choonster/TestMod3/blob/a6e5f7c223a18e4a53732af49aac6ac1bb52cc6f/src/main/java/choonster/testmod3/init/ModEntities.java
	private static int entityID = 0;
	
	/**
	 * Register an entity with the specified tracking values.
	 *
	 * @param entityClass
	 *            The entity's class
	 * @param entityName
	 *            The entity's unique name
	 * @param trackingRange
	 *            The range at which MC will send tracking updates
	 * @param updateFrequency
	 *            The frequency of tracking updates
	 * @param sendsVelocityUpdates
	 *            Whether to send velocity information packets as well
	 */
	@SuppressWarnings("unused")
	private static void registerEntity(Class<? extends Entity> entityClass, String entityName, int trackingRange,
			int updateFrequency, boolean sendsVelocityUpdates)
	{
// Path: src/main/java/com/team/kalstuff/KalStuff.java
// @Mod(modid = KalStuff.MODID,
// 	 name = KalStuff.NAME,
// 	 version = KalStuff.VERSION,
// 	 acceptedMinecraftVersions = "[1.12.2]",
// 	 useMetadata = true,
// 	 guiFactory = "com.team.kalstuff.config.KalStuffGuiFactory")
// public class KalStuff
// {
// 	public static final String MODID = "kalstuff";
// 	public static final String NAME = "KalStuff";
// 	public static final String VERSION = "1.0.0";
// 
// 	@SidedProxy(clientSide = "com.team.kalstuff.proxy.ClientProxy",
// 			serverSide = "com.team.kalstuff.proxy.ServerProxy")
// 	public static CommonProxy proxy;
// 
// 	// The instance of the mod that Forge uses.
// 	@Mod.Instance
// 	public static KalStuff instance;
// 
// 	public static Logger logger;
// 
// 	public static Configuration config;
// 
// 	@EventHandler
// 	public void preInit(FMLPreInitializationEvent e)
// 	{
// 		logger = e.getModLog();
// 		Config.initialize(e, e.getSuggestedConfigurationFile());
// 		config = Config.getConfig();
// 		proxy.preInit(e);
// 	}
// 
// 	@EventHandler
// 	public void init(FMLInitializationEvent e)
// 	{
// 		proxy.init(e);
// 	}
// 
// 	@EventHandler
// 	public void postInit(FMLPostInitializationEvent e)
// 	{
// 		if (config.hasChanged())
// 		{
// 			config.save();
// 		}
// 		proxy.postInit(e);
// 	}
// }


// Path: src/main/java/com/team/kalstuff/entity/KalStuffEntities.java
import com.team.kalstuff.KalStuff;
import net.minecraft.entity.Entity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.common.registry.EntityRegistry;

package com.team.kalstuff.entity;



public class KalStuffEntities
{
	/**
	 * Initializes and registers all entities from the mod.
	 */
	public static void setup()
	{
		registerEntities();
	}

	public static void registerEntities()
	{
		registerEntity(EntityDuck.class, "duck", 80, 3, true, 0xFFFFFF, 0xE0C494);
	}

	// bits of this code were borrowed from Choonster because he wrote it very
	// neatly!
	// https://github.com/Choonster/TestMod3/blob/a6e5f7c223a18e4a53732af49aac6ac1bb52cc6f/src/main/java/choonster/testmod3/init/ModEntities.java
	private static int entityID = 0;
	
	/**
	 * Register an entity with the specified tracking values.
	 *
	 * @param entityClass
	 *            The entity's class
	 * @param entityName
	 *            The entity's unique name
	 * @param trackingRange
	 *            The range at which MC will send tracking updates
	 * @param updateFrequency
	 *            The frequency of tracking updates
	 * @param sendsVelocityUpdates
	 *            Whether to send velocity information packets as well
	 */
	@SuppressWarnings("unused")
	private static void registerEntity(Class<? extends Entity> entityClass, String entityName, int trackingRange,
			int updateFrequency, boolean sendsVelocityUpdates)
	{
		final ResourceLocation registryName = new ResourceLocation(KalStuff.MODID, entityName);