Class ComponentParser


  • public class ComponentParser
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.lang.String escapeTokens​(@NotNull java.lang.String richMessage)  
      static @NotNull java.lang.String handlePlaceholders​(@NotNull java.lang.String richMessage, @NotNull java.lang.String... placeholders)  
      static @NotNull java.lang.String handlePlaceholders​(@NotNull java.lang.String richMessage, @NotNull java.util.Map<java.lang.String,​java.lang.String> placeholders)  
      static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull java.lang.String richMessage)  
      static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull java.lang.String richMessage, @NotNull java.lang.String... placeholders)  
      static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull java.lang.String richMessage, @NotNull java.util.Map<java.lang.String,​java.lang.String> placeholders)  
      static @NotNull java.lang.String stripTokens​(@NotNull java.lang.String richMessage)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComponentParser

        public ComponentParser()
    • Method Detail

      • escapeTokens

        @NotNull
        public static @NotNull java.lang.String escapeTokens​(@NotNull
                                                             @NotNull java.lang.String richMessage)
      • stripTokens

        @NotNull
        public static @NotNull java.lang.String stripTokens​(@NotNull
                                                            @NotNull java.lang.String richMessage)
      • handlePlaceholders

        @NotNull
        public static @NotNull java.lang.String handlePlaceholders​(@NotNull
                                                                   @NotNull java.lang.String richMessage,
                                                                   @NotNull
                                                                   @NotNull java.lang.String... placeholders)
      • handlePlaceholders

        @NotNull
        public static @NotNull java.lang.String handlePlaceholders​(@NotNull
                                                                   @NotNull java.lang.String richMessage,
                                                                   @NotNull
                                                                   @NotNull java.util.Map<java.lang.String,​java.lang.String> placeholders)
      • parseFormat

        @NotNull
        public static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull
                                                                                    @NotNull java.lang.String richMessage,
                                                                                    @NotNull
                                                                                    @NotNull java.lang.String... placeholders)
      • parseFormat

        @NotNull
        public static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull
                                                                                    @NotNull java.lang.String richMessage,
                                                                                    @NotNull
                                                                                    @NotNull java.util.Map<java.lang.String,​java.lang.String> placeholders)
      • parseFormat

        @NotNull
        public static @NotNull net.md_5.bungee.api.chat.BaseComponent[] parseFormat​(@NotNull
                                                                                    @NotNull java.lang.String richMessage)