All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.skillw.pouvoir.api.feature.realizer.BaseRealizer.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.api.feature.realizer

import com.skillw.pouvoir.api.plugin.map.component.Registrable
import java.io.File

/**
 * @className BaseRealizer
 *
 * @author Glom
 * @date 2023/1/5 10:46 Copyright 2022 user.
 */
abstract class BaseRealizer(final override val key: String) : Registrable {

    //配置文件
    abstract val file: File
    abstract val manager: BaseRealizerManager

    // 配置
    val config = HashMap()

    // 每次重载时会补充缺失节点与注释,会忽略此集合中的节点
    val ignorePaths = HashSet()

    override fun register() {
        manager.register(this)
    }

    override fun toString(): String {
        return "BaseRealizer $key in ${manager.key}"
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy