com.skillw.pouvoir.api.feature.operation.Operation.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.operation
import com.skillw.pouvoir.Pouvoir
import com.skillw.pouvoir.api.plugin.map.component.Registrable
/**
* @className NumberOperation
*
* @author Glom
* @date 2022/7/19 12:38 Copyright 2022 user.
*/
interface Operation : Registrable {
/** 是否在重载时删除 */
var release: Boolean
/**
* 做运算
*
* @param a 对象a
* @param b 对象b
* @return 运算结果
*/
fun operate(a: T, b: T): T
override fun register() {
Pouvoir.operationManager.register(this)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy