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

io.github.parzivalExe.guiApi.antlr.converter.OpenOptionConverter.kt Maven / Gradle / Ivy

Go to download

With GuiAPI you can create Guis for your Bukkit/Spigot-Plugin in seconds while at the same time saving many lines of code

The newest version!
package io.github.parzivalExe.guiApi.antlr.converter

import io.github.parzivalExe.guiApi.components.OpenOption

class OpenOptionConverter : Converter {

    override fun attributeStringToValue(attrString: String, defaultValue: Any?): Any? =
        if(attrString.equals("newInventory", true))
            OpenOption.NEW_INVENTORY
        else if(attrString.equals("underInventory", true))
            OpenOption.UNDER_INVENTORY
        else
            defaultValue

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy