Class LegacyAmpersandPattern

java.lang.Object
net.lucypoulton.squirtgun.format.pattern.LegacyAmpersandPattern
All Implemented Interfaces:
FormatPattern

public class LegacyAmpersandPattern extends Object implements FormatPattern
The legacy ampersand pattern. This is an internal class, you shouldn't need to use it.
  • Constructor Details

    • LegacyAmpersandPattern

      public LegacyAmpersandPattern()
  • Method Details

    • process

      @Nullable public @Nullable net.kyori.adventure.text.Component process(@NotNull @NotNull String in, String formattersOverride)
      Description copied from interface: FormatPattern
      Parses the given string to a component.
      Specified by:
      process in interface FormatPattern
      Parameters:
      in - the string to parse
      formattersOverride - a string containing vanilla formatters, ie 'lo', to apply to the text
      Returns:
      the component, or null if the string doesnt match the format