// Path: src/main/java/mc/Mitchellbrine/diseaseCraft/api/Module.java
// public abstract class Module {
// 
// 	public abstract void preInit();
// 
// 	public abstract void init();
// 
// 	public abstract void postInit();
// 
// 	public abstract void serverStart();
// 
// }
// 
// Path: src/main/java/mc/Mitchellbrine/diseaseCraft/modules/jokeDisease/JokeEvents.java
// public class JokeEvents {
// 
// 	@SubscribeEvent
// 	public void livingUpdate(DiseaseEvent.DiseaseTickEvent event) {
// 		if (DiseaseHelper.diseaseExists("shrekRabies") && event.disease == DiseaseHelper.getDiseaseInstance("shrekRabies")) {
// 			int posX = MathHelper.floor_double(event.entityLiving.posX);
// 			int posY = MathHelper.floor_double(event.entityLiving.posY);
// 			int posZ = MathHelper.floor_double(event.entityLiving.posZ);
// 
// 			if ((event.entityLiving.worldObj.getBlock(posX, posY, posZ).getMaterial() == Material.water || event.entityLiving.worldObj.getBlock(posX,posY-1,posZ).getMaterial() == Material.water) && event.entityLiving.worldObj.getBiomeGenForCoordsBody(posX,posZ) != BiomeGenBase.swampland) {
// 				if (event.entityLiving.worldObj.getTotalWorldTime() % 20 == 0) {
// 					event.entityLiving.attackEntityFrom(ModuleJoke.shrekDamage,1.0F);
// 					if (!event.entityLiving.worldObj.isRemote) {
// 						if (GenericEffects.rand.nextInt(3) == 0)
// 							event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:mySwamp", 1.0f, 1.0f);
// 					}
// 				}
// 			}
// 		}
// 	}
// 
// 	@SubscribeEvent
// 	public void death(LivingDeathEvent event) {
// 		if (event.source == ModuleJoke.shrekDamage) {
// 			if (GenericEffects.rand.nextInt(2) == 0) {
// 				event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:neverOgre", 1.0f, 1.0f);
// 			} else {
// 				event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:allOgre", 1.0f, 1.0f);
// 			}
// 		}
// 	}
// 
// }


import cpw.mods.fml.common.FMLCommonHandler;
import mc.Mitchellbrine.diseaseCraft.api.DCModule;
import mc.Mitchellbrine.diseaseCraft.api.Module;
import mc.Mitchellbrine.diseaseCraft.modules.jokeDisease.JokeEvents;
import net.minecraft.util.DamageSource;
import net.minecraftforge.common.MinecraftForge;
package mc.Mitchellbrine.diseaseCraft.modules;


/**
 * Created by Mitchellbrine on 2015.
 */
@DCModule(id = "jokeDisease",modid = "DiseaseCraft",dcVersion = "2.0",version = "1.0",canBeDisabled = true,isEnabled = false)
public class ModuleJoke extends Module{

	public static DamageSource shrekDamage = new DamageSource("shrek").setDamageBypassesArmor().setDifficultyScaled();

	@Override
	public void preInit() {
// Path: src/main/java/mc/Mitchellbrine/diseaseCraft/api/Module.java
// public abstract class Module {
// 
// 	public abstract void preInit();
// 
// 	public abstract void init();
// 
// 	public abstract void postInit();
// 
// 	public abstract void serverStart();
// 
// }
// 
// Path: src/main/java/mc/Mitchellbrine/diseaseCraft/modules/jokeDisease/JokeEvents.java
// public class JokeEvents {
// 
// 	@SubscribeEvent
// 	public void livingUpdate(DiseaseEvent.DiseaseTickEvent event) {
// 		if (DiseaseHelper.diseaseExists("shrekRabies") && event.disease == DiseaseHelper.getDiseaseInstance("shrekRabies")) {
// 			int posX = MathHelper.floor_double(event.entityLiving.posX);
// 			int posY = MathHelper.floor_double(event.entityLiving.posY);
// 			int posZ = MathHelper.floor_double(event.entityLiving.posZ);
// 
// 			if ((event.entityLiving.worldObj.getBlock(posX, posY, posZ).getMaterial() == Material.water || event.entityLiving.worldObj.getBlock(posX,posY-1,posZ).getMaterial() == Material.water) && event.entityLiving.worldObj.getBiomeGenForCoordsBody(posX,posZ) != BiomeGenBase.swampland) {
// 				if (event.entityLiving.worldObj.getTotalWorldTime() % 20 == 0) {
// 					event.entityLiving.attackEntityFrom(ModuleJoke.shrekDamage,1.0F);
// 					if (!event.entityLiving.worldObj.isRemote) {
// 						if (GenericEffects.rand.nextInt(3) == 0)
// 							event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:mySwamp", 1.0f, 1.0f);
// 					}
// 				}
// 			}
// 		}
// 	}
// 
// 	@SubscribeEvent
// 	public void death(LivingDeathEvent event) {
// 		if (event.source == ModuleJoke.shrekDamage) {
// 			if (GenericEffects.rand.nextInt(2) == 0) {
// 				event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:neverOgre", 1.0f, 1.0f);
// 			} else {
// 				event.entityLiving.worldObj.playSoundAtEntity(event.entityLiving, "DiseaseCraft:allOgre", 1.0f, 1.0f);
// 			}
// 		}
// 	}
// 
// }


// Path: src/main/java/mc/Mitchellbrine/diseaseCraft/modules/ModuleJoke.java
import cpw.mods.fml.common.FMLCommonHandler;
import mc.Mitchellbrine.diseaseCraft.api.DCModule;
import mc.Mitchellbrine.diseaseCraft.api.Module;
import mc.Mitchellbrine.diseaseCraft.modules.jokeDisease.JokeEvents;
import net.minecraft.util.DamageSource;
import net.minecraftforge.common.MinecraftForge;

package mc.Mitchellbrine.diseaseCraft.modules;


/**
 * Created by Mitchellbrine on 2015.
 */
@DCModule(id = "jokeDisease",modid = "DiseaseCraft",dcVersion = "2.0",version = "1.0",canBeDisabled = true,isEnabled = false)
public class ModuleJoke extends Module{

	public static DamageSource shrekDamage = new DamageSource("shrek").setDamageBypassesArmor().setDifficultyScaled();

	@Override
	public void preInit() {
		MinecraftForge.EVENT_BUS.register(new JokeEvents());