com.skillw.pouvoir.api.feature.realizer.BaseRealizer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Pouvoir Show documentation
Show all versions of Pouvoir Show documentation
Bukkit Script Engine Plugin.
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