Class ComponentStyle

    • Method Detail

      • getColor

        public ChatColor getColor()
        Returns the color of this style. May return null.
        Returns:
        the color of this style, or null if default color
      • hasColor

        public boolean hasColor()
        Returns whether or not this style has a color set.
        Returns:
        whether a color is set
      • getFont

        public String getFont()
        Returns the font of this style. May return null.
        Returns:
        the font of this style, or null if default font
      • hasFont

        public boolean hasFont()
        Returns whether or not this style has a font set.
        Returns:
        whether a font is set
      • isBold

        public boolean isBold()
        Returns whether this style is bold.
        Returns:
        whether the style is bold
      • isBoldRaw

        public Boolean isBoldRaw()
        Returns whether this style is bold. May return null.
        Returns:
        whether the style is bold, or null if not set
      • isItalic

        public boolean isItalic()
        Returns whether this style is italic. May return null.
        Returns:
        whether the style is italic
      • isItalicRaw

        public Boolean isItalicRaw()
        Returns whether this style is italic. May return null.
        Returns:
        whether the style is italic, or null if not set
      • isUnderlined

        public boolean isUnderlined()
        Returns whether this style is underlined.
        Returns:
        whether the style is underlined
      • isUnderlinedRaw

        public Boolean isUnderlinedRaw()
        Returns whether this style is underlined. May return null.
        Returns:
        whether the style is underlined, or null if not set
      • isStrikethrough

        public boolean isStrikethrough()
        Returns whether this style is strikethrough
        Returns:
        whether the style is strikethrough
      • isStrikethroughRaw

        public Boolean isStrikethroughRaw()
        Returns whether this style is strikethrough. May return null.
        Returns:
        whether the style is strikethrough, or null if not set
      • isObfuscated

        public boolean isObfuscated()
        Returns whether this style is obfuscated.
        Returns:
        whether the style is obfuscated
      • isObfuscatedRaw

        public Boolean isObfuscatedRaw()
        Returns whether this style is obfuscated. May return null.
        Returns:
        whether the style is obfuscated, or null if not set
      • isEmpty

        public boolean isEmpty()
        Returns whether this style has any formatting explicitly set.
        Returns:
        true if at least one value is set, false if none are set
      • setColor

        public void setColor​(ChatColor color)
        The color of this style.
      • setFont

        public void setFont​(String font)
        The font of this style.
      • setBold

        public void setBold​(Boolean bold)
        Whether this style is bold.
      • setItalic

        public void setItalic​(Boolean italic)
        Whether this style is italic.
      • setUnderlined

        public void setUnderlined​(Boolean underlined)
        Whether this style is underlined.
      • setStrikethrough

        public void setStrikethrough​(Boolean strikethrough)
        Whether this style is strikethrough.
      • setObfuscated

        public void setObfuscated​(Boolean obfuscated)
        Whether this style is obfuscated.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object