// Path: src/main/java/tonius/emobile/EMobile.java
// @Mod(modid = "emobile", guiFactory = "tonius.emobile.config.ConfigGuiFactoryEM", dependencies = "after:ThermalExpansion")
// public class EMobile {
//     
//     @Instance("emobile")
//     public static EMobile instance;
//     @SidedProxy(serverSide = "tonius.emobile.CommonProxy", clientSide = "tonius.emobile.client.ClientProxy")
//     public static CommonProxy proxy;
//     public static Logger logger;
//     
//     public static ItemCellphone cellphone = null;
//     public static ItemCellphoneRF cellphoneRF = null;
//     
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent evt) {
//         logger = evt.getModLog();
//         logger.info("Starting E-Mobile");
//         
//         EMConfig.preInit(evt);
//         
//         if (EMConfig.enderPearlStackSize != Items.ender_pearl.getItemStackLimit()) {
//             logger.info("Setting new Ender Pearl stack size");
//             Items.ender_pearl.setMaxStackSize(EMConfig.enderPearlStackSize);
//         }
//         
//         logger.info("Registering items");
//         cellphone = new ItemCellphone();
//         GameRegistry.registerItem(cellphone, "cellphone");
//         if (EMConfig.fluxCellphoneEnabled) {
//             cellphoneRF = new ItemCellphoneRF(EMConfig.fluxCellphoneMaxEnergy, EMConfig.fluxCellphoneMaxInput, EMConfig.fluxCellphoneEnergyPerUse);
//             GameRegistry.registerItem(cellphoneRF, "cellphoneRF");
//         }
//         
//         logger.info("Registering handlers");
//         PacketHandler.preInit();
//         NetworkRegistry.INSTANCE.registerGuiHandler(this, new EMGuiHandler());
//         FMLCommonHandler.instance().bus().register(instance);
//         FMLCommonHandler.instance().bus().register(new CellphoneSessionsHandler());
//         if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
//             FMLCommonHandler.instance().bus().register(new ClientConfigTickHandler());
//         }
//     }
//     
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent evt) {
//         logger.info("Registering recipes");
//         if (Loader.isModLoaded("ThermalExpansion")) {
//             GameRegistry.addRecipe(new ShapedOreRecipe(cellphone, new Object[] { " IS", "IPI", "III", 'S', "nuggetCopper", 'I', "ingotInvar", 'P', GameRegistry.findItemStack("ThermalFoundation", "bucketEnder", 1) }));
//             if (cellphoneRF != null) {
//                 GameRegistry.addRecipe(new ShapedOreRecipe(cellphoneRF, new Object[] { " IS", "IPI", "III", 'S', GameRegistry.findItemStack("ThermalExpansion", "powerCoilGold", 1), 'I', "ingotSignalum", 'P', cellphone }));
//             }
//         } else {
//             GameRegistry.addRecipe(new ShapedOreRecipe(cellphone, new Object[] { " IS", "IPI", "III", 'S', "stickWood", 'I', "ingotIron", 'P', Items.ender_pearl }));
//             if (cellphoneRF != null) {
//                 GameRegistry.addRecipe(new ShapedOreRecipe(cellphoneRF, new Object[] { " IS", "IPI", "RIR", 'S', "gemDiamond", 'I', "ingotGold", 'P', cellphone, 'R', "dustRedstone" }));
//             }
//         }
//     }
//     
//     @SubscribeEvent
//     public void onPlayerLoggedIn(PlayerLoggedInEvent evt) {
//         PacketHandler.instance.sendTo(new MessageConfigSync(), (EntityPlayerMP) evt.player);
//     }
//     
// }


import io.netty.buffer.ByteBuf;
import tonius.emobile.EMobile;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
package tonius.emobile.network.message;


public class MessageDiallingParticles implements IMessage, IMessageHandler<MessageDiallingParticles, IMessage> {
    
    public double posX;
    public double posY;
    public double posZ;
    
    public MessageDiallingParticles() {
    }
    
    public MessageDiallingParticles(double posX, double posY, double posZ) {
        this.posX = posX;
        this.posY = posY;
        this.posZ = posZ;
    }
    
    @Override
    public void fromBytes(ByteBuf buf) {
        this.posX = buf.readDouble();
        this.posY = buf.readDouble();
        this.posZ = buf.readDouble();
    }
    
// Path: src/main/java/tonius/emobile/EMobile.java
// @Mod(modid = "emobile", guiFactory = "tonius.emobile.config.ConfigGuiFactoryEM", dependencies = "after:ThermalExpansion")
// public class EMobile {
//     
//     @Instance("emobile")
//     public static EMobile instance;
//     @SidedProxy(serverSide = "tonius.emobile.CommonProxy", clientSide = "tonius.emobile.client.ClientProxy")
//     public static CommonProxy proxy;
//     public static Logger logger;
//     
//     public static ItemCellphone cellphone = null;
//     public static ItemCellphoneRF cellphoneRF = null;
//     
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent evt) {
//         logger = evt.getModLog();
//         logger.info("Starting E-Mobile");
//         
//         EMConfig.preInit(evt);
//         
//         if (EMConfig.enderPearlStackSize != Items.ender_pearl.getItemStackLimit()) {
//             logger.info("Setting new Ender Pearl stack size");
//             Items.ender_pearl.setMaxStackSize(EMConfig.enderPearlStackSize);
//         }
//         
//         logger.info("Registering items");
//         cellphone = new ItemCellphone();
//         GameRegistry.registerItem(cellphone, "cellphone");
//         if (EMConfig.fluxCellphoneEnabled) {
//             cellphoneRF = new ItemCellphoneRF(EMConfig.fluxCellphoneMaxEnergy, EMConfig.fluxCellphoneMaxInput, EMConfig.fluxCellphoneEnergyPerUse);
//             GameRegistry.registerItem(cellphoneRF, "cellphoneRF");
//         }
//         
//         logger.info("Registering handlers");
//         PacketHandler.preInit();
//         NetworkRegistry.INSTANCE.registerGuiHandler(this, new EMGuiHandler());
//         FMLCommonHandler.instance().bus().register(instance);
//         FMLCommonHandler.instance().bus().register(new CellphoneSessionsHandler());
//         if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
//             FMLCommonHandler.instance().bus().register(new ClientConfigTickHandler());
//         }
//     }
//     
//     @EventHandler
//     public void postInit(FMLPostInitializationEvent evt) {
//         logger.info("Registering recipes");
//         if (Loader.isModLoaded("ThermalExpansion")) {
//             GameRegistry.addRecipe(new ShapedOreRecipe(cellphone, new Object[] { " IS", "IPI", "III", 'S', "nuggetCopper", 'I', "ingotInvar", 'P', GameRegistry.findItemStack("ThermalFoundation", "bucketEnder", 1) }));
//             if (cellphoneRF != null) {
//                 GameRegistry.addRecipe(new ShapedOreRecipe(cellphoneRF, new Object[] { " IS", "IPI", "III", 'S', GameRegistry.findItemStack("ThermalExpansion", "powerCoilGold", 1), 'I', "ingotSignalum", 'P', cellphone }));
//             }
//         } else {
//             GameRegistry.addRecipe(new ShapedOreRecipe(cellphone, new Object[] { " IS", "IPI", "III", 'S', "stickWood", 'I', "ingotIron", 'P', Items.ender_pearl }));
//             if (cellphoneRF != null) {
//                 GameRegistry.addRecipe(new ShapedOreRecipe(cellphoneRF, new Object[] { " IS", "IPI", "RIR", 'S', "gemDiamond", 'I', "ingotGold", 'P', cellphone, 'R', "dustRedstone" }));
//             }
//         }
//     }
//     
//     @SubscribeEvent
//     public void onPlayerLoggedIn(PlayerLoggedInEvent evt) {
//         PacketHandler.instance.sendTo(new MessageConfigSync(), (EntityPlayerMP) evt.player);
//     }
//     
// }


// Path: src/main/java/tonius/emobile/network/message/MessageDiallingParticles.java
import io.netty.buffer.ByteBuf;
import tonius.emobile.EMobile;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;

package tonius.emobile.network.message;


public class MessageDiallingParticles implements IMessage, IMessageHandler<MessageDiallingParticles, IMessage> {
    
    public double posX;
    public double posY;
    public double posZ;
    
    public MessageDiallingParticles() {
    }
    
    public MessageDiallingParticles(double posX, double posY, double posZ) {
        this.posX = posX;
        this.posY = posY;
        this.posZ = posZ;
    }
    
    @Override
    public void fromBytes(ByteBuf buf) {
        this.posX = buf.readDouble();
        this.posY = buf.readDouble();
        this.posZ = buf.readDouble();
    }
    
    @Override