com.skillw.pouvoir.internal.feature.handler.AsahiHandlerBuilder.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.internal.feature.handler
import com.skillw.asahi.api.AsahiAPI.compile
import com.skillw.asahi.api.member.context.AsahiContext
import com.skillw.asahi.api.script.AsahiCompiledScript
import com.skillw.asahi.util.castSafely
import com.skillw.asahi.util.toLazyMap
import com.skillw.pouvoir.api.plugin.map.DataMap
import com.skillw.pouvoir.util.toMap
import org.bukkit.configuration.serialization.ConfigurationSerializable
import taboolib.common.platform.event.EventPriority
import taboolib.common5.cbool
/**
* @className AsahiHandler
*
* @author Glom
* @date 2023/1/15 23:12 Copyright 2024 Glom.
*/
class AsahiHandlerBuilder(
initial: AsahiContext = AsahiContext.create(),
receiver: AsahiHandlerBuilder.() -> Unit = {},
) : AsahiContext by initial,
ConfigurationSerializable {
var key = ""
val triggers = HashSet()
var priority = EventPriority.NORMAL
val import = HashSet()
val control = ArrayList
© 2015 - 2024 Weber Informatics LLC | Privacy Policy