@SideOnly(Side.CLIENT)
public class EffectHandler
{
public static void spawnParticle(String particleID, Vector3 position, Vector3 motion, Object... otherInfo)
{
Minecraft mc = FMLClientHandler.instance().getClient();
if (mc != null && mc.renderViewEntity != null && mc.effectRenderer != null)
{
double dX = mc.renderViewEntity.posX - position.x;
double dY = mc.renderViewEntity.posY - position.y;