Interface MiniMessageWrapper

    • Method Detail

      • standard

        @NotNull
        static @NotNull MiniMessageWrapper standard()

        Gets a simple instance.

        This will parse everything like MiniMessage will except for advanced transformations.

        Builder options with this instance:

        • Gradients: True
        • Hex Colors: True
        • Standard Colors: True
        • Legacy Colors: False
        • Advanced Transformations: False
        • Placeholder Resolver: Empty
        • Block Text Decorations: None
        • Blocked Colors: None
        • Luminance Threshold: 0
        Returns:
        a simple instance
      • legacy

        @NotNull
        static @NotNull MiniMessageWrapper legacy()

        Gets a simple instance with legacy code support.

        This will parse everything like MiniMessage will with the addition of legacy code support and the subtraction of advanced transformation support.

        Builder options with this instance:

        • Gradients: True
        • Hex Colors: True
        • Standard Colors: True
        • Legacy Colors: True
        • Advanced Transformations: False
        • Placeholder Resolver: Empty
        • Block Text Decorations: None
        • Blocked Colors: None
        • Luminance Threshold: 0
        Returns:
        a simple instance
      • mmParse

        @NotNull
        @NotNull net.kyori.adventure.text.Component mmParse​(@NotNull
                                                            @NotNull String mmString)
        Parse a string into a Component using MiniMessage.
        Parameters:
        mmString - the string to parse
        Returns:
        component
      • mmString

        @NotNull
        @NotNull String mmString​(@NotNull
                                 @NotNull String mmString)
        Get the modified string.
        Parameters:
        mmString - string to modify
        Returns:
        modified string
      • builder

        @NotNull
        static @NotNull MiniMessageWrapper.Builder builder()

        Creates a new MiniMessageWrapper.Builder.

        Default builder options:

        • Gradients: True
        • Hex Colors: True
        • Standard Colors: True
        • Legacy Colors: False
        • Advanced Transformations: False
        Returns:
        a builder