The Bukkit Plugin for customizing food effects.
Main project page: http://dev.bukkit.org/bukkit-plugins/custom-health/
CustomHealth.java - Main plugin class, contains onEnable, onDisable methodFoodValue.java - Contains all the values for a food item, regenerated health, hunger, etc.
MainListener.java - Executes everything when food item is eaten Database.java - Saves all informations about food items and worlds as static maps
RandomValue.java - Used for randomization, random values between a minimum and maximum
Updater.java - Update checker that I didn't write. More about it here
PotionValue.java - All potion attributes that are saved in the FoodValue
EffectValue.java - All additional effect attributes that are saved in the FoodValue. Class is abstract, all effects in here are the child classes
FoodChanger.java - Listener class, only called if at least one of the worlds have "get-hungry" disabled (check settings.change-food-level in template file)
HeartChanger.java - Listener class, only called if at least one of the worlds have heart regeneration turned off (check settings.regain-health in template file)
CommandMain.java - Main command class, contains commands such as /ch create, /ch rename, /ch reload, etc.