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

com.skillw.pouvoir.api.plugin.handler.ClassHandler.kt Maven / Gradle / Ivy

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