com.skillw.asahi.api.member.quest.Quester.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.member.quest
import com.skillw.asahi.api.member.context.AsahiContext
fun interface Quester {
/**
* 在上下文中执行/获取
*
* @return R
* @receiver AsahiContext
*/
fun AsahiContext.execute(): R
fun run(context: AsahiContext): R {
return context.run { execute() }
}
fun get(context: AsahiContext): R {
return context.execute()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy