com.skillw.asahi.api.script.linking.InvokerHolder.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.asahi.api.script.linking
/**
* @className InvokerHolder
*
* @author Glom
* @date 2023/1/22 19:06 Copyright 2024 Glom.
*/
interface InvokerHolder {
/** 可调用对象 当前上下文中的可调用对象 */
val invokers: HashMap
/**
* Has invoker
*
* @param key
* @return
*/
fun hasInvoker(key: String): Boolean {
return invokers.containsKey(key)
}
/**
* Add invoker
*
* @param key
* @param invoker
*/
fun addInvoker(key: String, invoker: Invoker) {
invokers[key] = invoker
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy