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

com.skillw.pouvoir.api.feature.realizer.component.Vanillable.kt Maven / Gradle / Ivy

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

import com.skillw.pouvoir.api.feature.realizer.BaseRealizer

import taboolib.common5.cbool

/**
 * @className Vanillable
 *
 * @author Glom
 * @date 2023/1/5 16:51 Copyright 2022 user.
 */
interface Vanillable {

    val defaultVanilla: Boolean
    fun isEnableVanilla(): Boolean = (this as? BaseRealizer)?.config?.get("vanilla")?.cbool ?: defaultVanilla

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy