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

com.skillw.pouvoir.api.script.annotation.ScriptAnnotation.kt Maven / Gradle / Ivy

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

import com.skillw.pouvoir.Pouvoir
import com.skillw.pouvoir.api.plugin.map.component.Registrable

/**
 * Script annotation
 *
 * @constructor Create empty Script annotation
 * @property key
 * @property awakeWhenEnable
 */
abstract class ScriptAnnotation(
    override val key: String,
    val awakeWhenEnable: Boolean = false,
    val fileAnnotation: Boolean = false,
) : Registrable {
    override fun register() {
        Pouvoir.scriptAnnotationManager.register(this)
    }

    /**
     * Handle script annotation
     *
     * @param data
     */
    abstract fun handle(data: ScriptAnnotationData)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy