com.skillw.pouvoir.api.plugin.handler.ClassHandler.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.
The newest version!
package com.skillw.pouvoir.api.plugin.handler
import taboolib.library.reflex.ClassStructure
/**
* @className ClassHandler
*
* @author Glom
* @date 2022/7/18 12:20 Copyright 2022 user.
*/
abstract class ClassHandler(val priority: Int) : Comparable {
/**
* Inject
*
* @param clazz
* @param plugin
*/
abstract fun inject(clazz: ClassStructure)
override fun compareTo(other: ClassHandler): Int = if (this.priority == other.priority) 0
else if (this.priority > other.priority) 1
else -1
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy