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

com.skillw.pouvoir.api.plugin.object.BaseObject.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
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