Interface MonkeyLibStyle

All Known Subinterfaces:
ModdedMonkeyLibStyle
All Known Implementing Classes:
MonkeyLibStyleImpl

public interface MonkeyLibStyle
  • Method Details

    • withShowText

      MonkeyLibStyle withShowText(MonkeyLibText value)
    • withOpenUrl

      MonkeyLibStyle withOpenUrl(URI value)
    • withOpenFile

      MonkeyLibStyle withOpenFile(Path value)
    • withRunCommand

      MonkeyLibStyle withRunCommand(String value)
    • withSuggestCommand

      MonkeyLibStyle withSuggestCommand(String value)
    • withCopyToClipboard

      MonkeyLibStyle withCopyToClipboard(String value)
    • copyEventsFrom

      MonkeyLibStyle copyEventsFrom(MonkeyLibStyle from)
    • withItalic

      MonkeyLibStyle withItalic(boolean italic)
      Returns a new style with the provided italic attribute.
      Parameters:
      italic - if the new style should be italic
      Returns:
      a new style with the provided italic attribute
    • withUnderline

      MonkeyLibStyle withUnderline(boolean underline)
      Returns a new style with the provided underline attribute.
      Parameters:
      underline - if the new style should be underlined
      Returns:
      a new style with the provided underline attribute
    • withColor

      MonkeyLibStyle withColor(int rgbColor)
      Returns a new style with the provided rgb color.
      Parameters:
      rgbColor - the color in the 0xRRGGBB format
      Returns:
      a new style with the provided color attribute
    • withFormattingCode

      @Nullable MonkeyLibStyle withFormattingCode(char code)
      Returns a new style with the formatting code.
      Parameters:
      code - the formatting code to use
      Returns:
      a new style with the formatting code
    • equals

      boolean equals(MonkeyLibStyle other)
      Checks if this style is equal to the provided one.
      Parameters:
      other - the style to check against
      Returns:
      if this style is equal to the provided one
    • empty

      static MonkeyLibStyle empty()
      Creates an empty style
      Returns:
      an empty style