com.skillw.pouvoir.internal.feature.operation.num.OperationPlus.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.operation.num
import com.skillw.pouvoir.api.feature.operation.NumberOperation
import com.skillw.pouvoir.api.plugin.annotation.AutoRegister
@AutoRegister
object OperationPlus : NumberOperation("plus", "+") {
override fun operate(a: Number, b: Number): Number {
return a.toDouble() + b.toDouble()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy