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

love.forte.simbot.annotation.Priority Maven / Gradle / Ivy

There is a newer version: 3.0.0.preview.0.4
Show newest version
/*
 *
 *  * Copyright (c) 2021. ForteScarlet All rights reserved.
 *  * Project  simple-robot
 *  * File     MiraiAvatar.kt
 *  *
 *  * You can contact the author through the following channels:
 *  * github https://github.com/ForteScarlet
 *  * gitee  https://gitee.com/ForteScarlet
 *  * email  [email protected]
 *  * QQ     1149159218
 *
 */

package love.forte.simbot.annotation;

import java.lang.annotation.*;

/**
 * 独立的优先级注解,可作用于监听函数上。
 * 此注解使用的优先级高于 {@link Listens#priority()}.
 * @author ForteScarlet
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.ANNOTATION_TYPE})
public @interface Priority {
    /**
     * 优先级值。
     */
    int value() default Listens.DEFAULT_PRIORITY;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy