@Override
    public void writeClass(Class clazz)
    {
        YamlFile yamlFile = new BukkitYamlFile(clazz.getSimpleName());
        yamlFile.set("class", clazz.getName());

        for(Method m : clazz.getMethods())
        {
            try {
                writeMethod(yamlFile, m);
            } catch (IllegalAccessException e) {
                handleException(e);
            } catch (InstantiationException e) {
                handleException(e);
            }
        }

        try {
            yamlFile.save(directory);
        } catch (IOException e) {
            handleException(e);
        }
    }