Class Mint

java.lang.Object
dev.mintychochip.mint.Mint

public final class Mint extends Object
  • Field Details

  • Method Details

    • createThemedComponent

      @AvailableSince("1.3") public static net.kyori.adventure.text.Component createThemedComponent(net.kyori.adventure.audience.Audience audience, String miniMessage)
      Creates a themed component with theme tags automatically resolved.

      Available theme tags: <accent>, <primary>, <secondary>, <neutral>, <success>, <error>, <warning>, <info>

      Colors resolve per-viewer based on their selected theme.

      
       Component component = Mint.createThemedComponent(player, "<accent>Hello!");
       
      Parameters:
      audience - the audience to resolve the theme for
      miniMessage - the MiniMessage text with theme tags
      Returns:
      the themed Component
    • sendThemedMessage

      @AvailableSince("1.3") public static void sendThemedMessage(net.kyori.adventure.audience.Audience audience, String miniMessage)
      Sends a themed message to an audience with theme tags automatically resolved.

      Available theme tags: <accent>, <primary>, <secondary>, <neutral>, <success>, <error>, <warning>, <info>

      Colors resolve per-viewer based on their selected theme.

      
       Mint.sendThemedMessage(player, "<accent>Hello!");
       
      Parameters:
      audience - the message recipient
      miniMessage - the MiniMessage text with theme tags
    • sendThemedActionBar

      @AvailableSince("1.3") public static void sendThemedActionBar(net.kyori.adventure.audience.Audience audience, String miniMessage)
      Sends a themed action bar to an audience with theme tags automatically resolved.

      Available theme tags: <accent>, <primary>, <secondary>, <neutral>, <success>, <error>, <warning>, <info>

      
       Mint.sendThemedActionBar(player, "<success>Item purchased!");
       
      Parameters:
      audience - the message recipient
      miniMessage - the MiniMessage text with theme tags
    • sendThemedTitle

      @AvailableSince("1.3") public static void sendThemedTitle(net.kyori.adventure.audience.Audience audience, String title, String subtitle)
      Sends a themed title to an audience with theme tags automatically resolved.

      Available theme tags: <accent>, <primary>, <secondary>, <neutral>, <success>, <error>, <warning>, <info>

      
       Mint.sendThemedTitle(player, "<primary>Welcome!", "<secondary>Enjoy your stay");
       
      Parameters:
      audience - the message recipient
      title - the title text with theme tags
      subtitle - the subtitle text with theme tags