package org.cyclops.cyclopscore.config.extendedconfig;

import org.cyclops.cyclopscore.config.ConfigurableType;
import org.cyclops.cyclopscore.config.configurable.ConfigurableVillager;
import org.cyclops.cyclopscore.init.ModBase;

/**
 * Config for villagers.
 * @author rubensworks
 * @see ExtendedConfig
 */
public abstract class VillagerConfig extends ExtendedConfig<VillagerConfig> {

    private final int id;

    /**
     * Make a new instance.
     * @param mod     The mod instance.
     * @param defaultId The default ID for the configurable.
     * @param namedId The unique name ID for the configurable.
     * @param comment The comment to add in the config file for this configurable.
     * @param element The class of this configurable.
     */
    public VillagerConfig(ModBase mod, int defaultId, String namedId,
            String comment, Class<? extends ConfigurableVillager> element) {
        super(mod, defaultId != 0, namedId, comment, element);
        this.id = defaultId;
    }

    public int getId() {
        return this.id;
    }
    
    @Override
	public String getUnlocalizedName() {
		return "entity.villager." + getNamedId();
	}
    
    @Override
	public ConfigurableType getHolderType() {
		return ConfigurableType.VILLAGER;
	}

}

@@ -398,14 +398,8 @@
 ate 
-final 
 int 
@@ -994,16 +994,77 @@
 %0A    %7D%0A%0A
+    public void setId(int id) %7B%0A        this.id = id;%0A    %7D%0A%0A
     publ

Allow changing of villager id