Class MultiMessage

java.lang.Object
de.oliver.fancylib.translations.message.Message
de.oliver.fancylib.translations.message.MultiMessage

public class MultiMessage extends Message
  • Constructor Details

  • Method Details

    • replace

      public Message replace(String placeholder, String replacement)
      Description copied from class: Message
      Replaces a placeholder in the message
      Specified by:
      replace in class Message
      Parameters:
      placeholder - the placeholder to replace
      replacement - the replacement
      Returns:
      this message
    • replaceStripped

      public Message replaceStripped(String placeholder, String replacement)
      Description copied from class: Message
      Replaces a placeholder in the message, all known tags are stripped from the replacement
      Specified by:
      replaceStripped in class Message
      Parameters:
      placeholder - the placeholder to replace
      replacement - the replacement
      Returns:
      this message
    • withPrefix

      public Message withPrefix()
      Description copied from class: Message
      Adds the prefix to the message
      Specified by:
      withPrefix in class Message
      Returns:
      this message
    • primary

      public Message primary()
      Description copied from class: Message
      Adds the primary color to the message
      Specified by:
      primary in class Message
      Returns:
      this message
    • secondary

      public Message secondary()
      Description copied from class: Message
      Adds the secondary color to the message
      Specified by:
      secondary in class Message
      Returns:
      this message
    • success

      public Message success()
      Description copied from class: Message
      Adds the success color to the message
      Specified by:
      success in class Message
      Returns:
      this message
    • warning

      public Message warning()
      Description copied from class: Message
      Adds the warning color to the message
      Specified by:
      warning in class Message
      Returns:
      this message
    • error

      public Message error()
      Description copied from class: Message
      Adds the error color to the message
      Specified by:
      error in class Message
      Returns:
      this message
    • applyCustomPlaceholders

      public Message applyCustomPlaceholders()
      Description copied from class: Message
      Applies custom placeholders to the message
      Specified by:
      applyCustomPlaceholders in class Message
      Returns:
      this message
    • buildComponent

      public net.kyori.adventure.text.Component buildComponent()
      Description copied from class: Message
      Builds the message as a component
      Specified by:
      buildComponent in class Message
      Returns:
      the built component
    • copy

      public Message copy()
      Description copied from class: Message
      Copies the message
      Specified by:
      copy in class Message
      Returns:
      the copied message
    • build

      public String build()
    • getRawMessages

      public List<String> getRawMessages()
    • getSimpleMessages

      public List<SimpleMessage> getSimpleMessages()
    • page

      public MultiMessage page(int page, int messagesPerPage)
    • getPages

      public int getPages(int messagesPerPage)