com.skillw.pouvoir.api.plugin.object.BaseObject.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.plugin.`object`
import com.skillw.pouvoir.api.plugin.map.component.Registrable
import org.bukkit.configuration.serialization.ConfigurationSerializable
/**
* Base object
*
* @constructor Create empty Base object
*/
interface BaseObject : Registrable,
Comparable,
ConfigurationSerializable {
override val key: String
/** Priority */
val priority: Int
override fun compareTo(other: BaseObject): Int = if (this.priority == other.priority) 0
else if (this.priority > other.priority) 1
else -1
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy