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

com.skillw.pouvoir.api.feature.realizer.component.Realizable.kt Maven / Gradle / Ivy

There is a newer version: 1.6.7-beta-6
Show newest version
package com.skillw.pouvoir.api.feature.realizer.component


import com.skillw.pouvoir.api.plugin.`object`.BaseObject
import org.bukkit.entity.LivingEntity

/**
 * @className Realizable
 *
 * @author Glom
 * @date 2023/1/5 16:25 Copyright 2022 user.
 */
interface Realizable {
    val priority: Int
    fun compareTo(other: BaseObject): Int = if (this.priority == other.priority) 0
    else if (this.priority > other.priority) 1
    else -1

    fun realize(entity: LivingEntity)
    fun unrealize(entity: LivingEntity)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy