io.github.parzivalExe.guiApi.antlr.converter.PathOriginConverter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of guiapi-mc1.8 Show documentation
Show all versions of guiapi-mc1.8 Show documentation
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.PathOrigin
class PathOriginConverter : Converter {
override fun attributeStringToValue(attrString: String, defaultValue: Any?): Any =
if(attrString.equals("PC_ORIGIN", true))
PathOrigin.PC_ORIGIN
else if(attrString.equals("SERVER_ORIGIN", true))
PathOrigin.SERVER_ORIGIN
else
PathOrigin.PROJECT_ORIGIN
}