java.lang.Object
org.lushplugins.chatcolorhandler.parsers.Parsers

public class Parsers extends Object
  • Constructor Details

    • Parsers

      public Parsers()
  • Method Details

    • register

      public static void register(Parser parser, int priority)
      Parameters:
      parser - parser to register
      priority - priority of parser, higher value will go first
    • parseString

      public static String parseString(@NotNull @NotNull String string, @NotNull Parser.OutputType outputType, @Nullable @Nullable org.bukkit.entity.Player player, @NotNull @NotNull List<Parser> parsers)
    • getRegisteredParsers

      public static List<Parser> getRegisteredParsers()
    • getRegisteredResolvers

      public static List<Resolver> getRegisteredResolvers()
    • ofType

      public static List<Parser> ofType(@NotNull @NotNull String type)
    • ofTypes

      public static List<Parser> ofTypes(@NotNull @NotNull String... types)
    • getCombinedResolvers

      public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver getCombinedResolvers(@Nullable @Nullable net.kyori.adventure.audience.Audience audience)
    • getCombinedResolvers

      public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver getCombinedResolvers(@Nullable @Nullable net.kyori.adventure.audience.Audience audience, @NotNull @NotNull List<Resolver> resolvers)