Interface AbstractMiniMessageFactory

All Known Implementing Classes:
DefaultMiniMessageFactory

public interface AbstractMiniMessageFactory
A factory for creating instances. The standard implementation is DefaultMiniMessageFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.text.minimessage.MiniMessage
    create(@Nullable OfflinePlayer player)
    Create a MiniMessage instance for a player.
  • Method Details

    • create

      @NotNull @NotNull net.kyori.adventure.text.minimessage.MiniMessage create(@Nullable @Nullable OfflinePlayer player)
      Create a MiniMessage instance for a player. No guarantees are made about when this method will be called. The implementation is not required to use its player argument. Implementations are also not required to return a new instance each time.
      Parameters:
      player - the player to create the MiniMessage for
      Returns:
      a MiniMessage instance