tech.carcadex.kotlinbukkitkit.architecture.lifecycle.Lifecycle.kt Maven / Gradle / Ivy
The newest version!
/*
ORIGINAL PACKAGE: package br.com.devsrsouza.kotlinbukkitapi.architecture
ORIGINAL REPOSITORY: https://github.com/DevSrSouza/KotlinBukkitAPI
AUTHOR: https://github.com/DevSrSouza
Thanks DevSrSouza for KotlinBukkitAPI
*/
package tech.carcadex.kotlinbukkitkit.architecture.lifecycle
/**
* Holds a lifecycle listener class and its priority
*/
public data class Lifecycle(
val priority: Int,
val listener: PluginLifecycleListener,
) : Comparable {
override fun compareTo(
other: Lifecycle,
): Int = other.priority.compareTo(priority)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy