// Path: src/main/java/info/ata4/minecraft/dragon/server/CommonProxy.java
// public class CommonProxy {
//     
//     private final int ENTITY_TRACKING_RANGE = 80;
//     private final int ENTITY_UPDATE_FREQ = 3;
//     private final int ENTITY_ID = 0;
//     private final boolean ENTITY_SEND_VELO_UPDATES = true;
//     
//     public void onPreInit(FMLPreInitializationEvent event) {
//         GameRegistry.register(BlockDragonBreedEgg.INSTANCE.setRegistryName("dragon_egg"));
//         GameRegistry.register(ItemDragonBreedEgg.INSTANCE.setRegistryName("dragon_egg"));
//     }
//     
//     public void onInit(FMLInitializationEvent evt) {
//         registerEntities();
// 
//         MinecraftForge.EVENT_BUS.register(new DragonEggBlockHandler());
//     }
// 
//     public void onPostInit(FMLPostInitializationEvent event) {
//     }
//     
//     public void onServerStarting(FMLServerStartingEvent evt) {
//         MinecraftServer server = evt.getServer();
//         ServerCommandManager cmdman = (ServerCommandManager) server.getCommandManager(); 
//         cmdman.registerCommand(new CommandDragon());
//     }
//     
//     public void onServerStopped(FMLServerStoppedEvent evt) {
//     }
//     
//     private void registerEntities() {
//         EntityRegistry.registerModEntity(EntityTameableDragon.class, "DragonMount",
//                 ENTITY_ID, DragonMounts.instance, ENTITY_TRACKING_RANGE, ENTITY_UPDATE_FREQ,
//                 ENTITY_SEND_VELO_UPDATES);
//     }
// }


import info.ata4.minecraft.dragon.server.CommonProxy;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.ModMetadata;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.*;
/*
 ** 2012 August 13
 **
 ** The author disclaims copyright to this source code.  In place of
 ** a legal notice, here is a blessing:
 **    May you do good and not evil.
 **    May you find forgiveness for yourself and forgive others.
 **    May you share freely, never taking more than you give.
 */
package info.ata4.minecraft.dragon;


/**
 * Main control class for Forge.
 * 
 * @author Nico Bergemann <barracuda415 at yahoo.de>
 */
@Mod(
    modid = DragonMounts.ID,
    name = DragonMounts.NAME,
    version = DragonMounts.VERSION,
    useMetadata = true,
    guiFactory = "info.ata4.minecraft.dragon.DragonMountsConfigGuiFactory"
)
public class DragonMounts {
    
    public static final String NAME = "Dragon Mounts";
    public static final String ID = "DragonMounts";
    public static final String AID = ID.toLowerCase();
    public static final String VERSION = "@VERSION@";
    
    @SidedProxy(
        serverSide = "info.ata4.minecraft.dragon.server.CommonProxy",
        clientSide = "info.ata4.minecraft.dragon.client.ClientProxy"
    )
// Path: src/main/java/info/ata4/minecraft/dragon/server/CommonProxy.java
// public class CommonProxy {
//     
//     private final int ENTITY_TRACKING_RANGE = 80;
//     private final int ENTITY_UPDATE_FREQ = 3;
//     private final int ENTITY_ID = 0;
//     private final boolean ENTITY_SEND_VELO_UPDATES = true;
//     
//     public void onPreInit(FMLPreInitializationEvent event) {
//         GameRegistry.register(BlockDragonBreedEgg.INSTANCE.setRegistryName("dragon_egg"));
//         GameRegistry.register(ItemDragonBreedEgg.INSTANCE.setRegistryName("dragon_egg"));
//     }
//     
//     public void onInit(FMLInitializationEvent evt) {
//         registerEntities();
// 
//         MinecraftForge.EVENT_BUS.register(new DragonEggBlockHandler());
//     }
// 
//     public void onPostInit(FMLPostInitializationEvent event) {
//     }
//     
//     public void onServerStarting(FMLServerStartingEvent evt) {
//         MinecraftServer server = evt.getServer();
//         ServerCommandManager cmdman = (ServerCommandManager) server.getCommandManager(); 
//         cmdman.registerCommand(new CommandDragon());
//     }
//     
//     public void onServerStopped(FMLServerStoppedEvent evt) {
//     }
//     
//     private void registerEntities() {
//         EntityRegistry.registerModEntity(EntityTameableDragon.class, "DragonMount",
//                 ENTITY_ID, DragonMounts.instance, ENTITY_TRACKING_RANGE, ENTITY_UPDATE_FREQ,
//                 ENTITY_SEND_VELO_UPDATES);
//     }
// }


// Path: src/main/java/info/ata4/minecraft/dragon/DragonMounts.java
import info.ata4.minecraft.dragon.server.CommonProxy;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.Mod.Instance;
import net.minecraftforge.fml.common.ModMetadata;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.*;

/*
 ** 2012 August 13
 **
 ** The author disclaims copyright to this source code.  In place of
 ** a legal notice, here is a blessing:
 **    May you do good and not evil.
 **    May you find forgiveness for yourself and forgive others.
 **    May you share freely, never taking more than you give.
 */
package info.ata4.minecraft.dragon;


/**
 * Main control class for Forge.
 * 
 * @author Nico Bergemann <barracuda415 at yahoo.de>
 */
@Mod(
    modid = DragonMounts.ID,
    name = DragonMounts.NAME,
    version = DragonMounts.VERSION,
    useMetadata = true,
    guiFactory = "info.ata4.minecraft.dragon.DragonMountsConfigGuiFactory"
)
public class DragonMounts {
    
    public static final String NAME = "Dragon Mounts";
    public static final String ID = "DragonMounts";
    public static final String AID = ID.toLowerCase();
    public static final String VERSION = "@VERSION@";
    
    @SidedProxy(
        serverSide = "info.ata4.minecraft.dragon.server.CommonProxy",
        clientSide = "info.ata4.minecraft.dragon.client.ClientProxy"
    )
    public static CommonProxy proxy;