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

com.skillw.pouvoir.api.feature.condition.Condition.kt Maven / Gradle / Ivy

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

import org.bukkit.entity.LivingEntity

/**
 * @className Condition
 *
 * @author Glom
 * @date 2022/7/18 23:55 Copyright 2022 user. 
 */
fun interface Condition {
    /**
     * 验证条件
     *
     * @param entity 实体 (可为null)
     * @param parameters 参数
     * @return 是否满足条件
     */
    fun condition(
        entity: LivingEntity?,
        parameters: Map,
    ): Boolean

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy