package com.cbouton.fatigue;

import net.minecraft.client.Minecraft;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.player.PlayerEvent;

import com.cbouton.fatigue.events.playerEvent;
import com.cbouton.fatigue.lib.Statics;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;

@Mod(modid = Statics.MODID, version = Statics.VERSION)
public class Fatigue
{
	public int difficulty;
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
		//TODO: Register Movement, Player Sleep and Item Use Events.
    	MinecraftForge.EVENT_BUS.register(new playerEvent());
    	//TODO: Get game mode updates
    	difficulty = Minecraft.getMinecraft().theWorld.difficultySetting;
        System.out.println(Statics.MODID + " Version " + Statics.VERSION + " Loaded");
    }
}

package com.cbouton.fatigue;

import net.minecraft.client.Minecraft;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.ForgeSubscribe;
import net.minecraftforge.event.entity.player.PlayerEvent;

import com.cbouton.fatigue.events.playerEvent;
import com.cbouton.fatigue.lib.Statics;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.event.FMLInitializationEvent;

@Mod(modid = Statics.MODID, version = Statics.VERSION)
public class Fatigue
{
	public int difficulty;
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
		//TODO: Register Movement, Player Sleep and Item Use Events.
    	MinecraftForge.EVENT_BUS.register(new playerEvent());
    	//TODO: Get game mode updates
    	difficulty = Minecraft.getMinecraft().theWorld.difficultySetting;
        System.out.println(Statics.MODID + " Version " + Statics.VERSION + " Loaded");
    }
}
/*
 * Automatic regen on peaceful Easy increases at double and decreases by half
 * Normal increases and decreases by the default amounts Hard increases at half
 * and decrease by double
 * 
 * 1/2 fatigue is normal full fatigue gives Haste/Speed no fatigue gives
 * Slowness/Mining Fatigue
 * 
 * 10 steps/1 mining Operation is the same decrease
 * 
 * above 50% hunger decreases slower/below 50% hunger decreases faster Hard has
 * players spawn at 50% fatigue
 * 
 * Sleeping is the best way to increase fatigue Mounted for a full day increases
 * fatigue by 1/4 of sleeping if not moving. if moving, fatigue decreases at 50%
 * the difficulty rate
 * 
 * Values can be determined later.
 */
Add notes for nh_99