Class FunnyFormatter

java.lang.Object
net.dzikoysk.funnyguilds.shared.FunnyFormatter
All Implemented Interfaces:
dev.peri.yetanothermessageslibrary.replace.Replaceable

public final class FunnyFormatter extends Object implements dev.peri.yetanothermessageslibrary.replace.Replaceable
  • Constructor Details

    • FunnyFormatter

      public FunnyFormatter()
  • Method Details

    • format

      public String format(String message)
    • format

      public static String format(String message, String placeholder, Object value)
    • format

      public static String format(String message, String placeholder, Supplier<?> valueSupplier)
    • replace

      @NotNull public @NotNull String replace(@Nullable @Nullable Locale locale, @NotNull @NotNull String text)
      Specified by:
      replace in interface dev.peri.yetanothermessageslibrary.replace.Replaceable
    • replace

      @NotNull public @NotNull net.kyori.adventure.text.Component replace(@Nullable @Nullable Locale locale, @NotNull @NotNull net.kyori.adventure.text.Component text)
      Specified by:
      replace in interface dev.peri.yetanothermessageslibrary.replace.Replaceable
    • register

      public FunnyFormatter register(String placeholder, Object value)
    • register

      public FunnyFormatter register(String placeholder, Supplier<?> valueSupplier)
    • of

      public static FunnyFormatter of(String placeholder, Object value)
    • of

      public static FunnyFormatter of(String placeholder, Supplier<?> valueSupplier)