/*
 * Copyright (c) 2020-2025 Polyhedral Development
 *
 * The Terra Core Addons are licensed under the terms of the MIT License. For more details,
 * reference the LICENSE file in this module's root directory.
 */

package com.dfsek.terra.addons.ore;

import com.dfsek.terra.api.Platform;
import com.dfsek.terra.api.config.ConfigFactory;
import com.dfsek.terra.api.config.ConfigPack;
import com.dfsek.terra.api.config.ConfigType;
import com.dfsek.terra.api.structure.Structure;
import com.dfsek.terra.api.util.reflection.TypeKey;


public class OreConfigType implements ConfigType<OreTemplate, Structure> {
    public static final TypeKey<Structure> ORE_TYPE_TOKEN = new TypeKey<>() {
    };
    private final OreFactory factory = new OreFactory();

    @Override
    public OreTemplate getTemplate(ConfigPack pack, Platform platform) {
        return new OreTemplate();
    }

    @Override
    public ConfigFactory<OreTemplate, Structure> getFactory() {
        return factory;
    }

    @Override
    public TypeKey<Structure> getTypeKey() {
        return ORE_TYPE_TOKEN;
    }
}
