Class StringToComponentGsonParser

java.lang.Object
org.core.config.parser.parsers.StringToComponentGsonParser
All Implemented Interfaces:
Parser<String,​net.kyori.adventure.text.Component>, StringParser<net.kyori.adventure.text.Component>

public class StringToComponentGsonParser extends Object implements StringParser<net.kyori.adventure.text.Component>
  • Constructor Details

    • StringToComponentGsonParser

      public StringToComponentGsonParser()
  • Method Details

    • parse

      public Optional<net.kyori.adventure.text.Component> parse(String original)
      Specified by:
      parse in interface Parser<String,​net.kyori.adventure.text.Component>
    • unparse

      public String unparse(net.kyori.adventure.text.Component value)
      Specified by:
      unparse in interface Parser<String,​net.kyori.adventure.text.Component>