Class ChatComponentStyle

    • Field Detail

      • siblings

        protected java.util.List<IChatComponent> siblings
        + The later siblings of this component. If this component turns the text bold, that will apply to all the siblings until a later sibling turns the text something else.
    • Constructor Detail

      • ChatComponentStyle

        public ChatComponentStyle()
    • Method Detail

      • getUnformattedText

        public final java.lang.String getUnformattedText()
        + Get the text of this component, and all child components, with all special formatting codes removed.
        Specified by:
        getUnformattedText in interface IChatComponent
      • getFormattedText

        public final java.lang.String getFormattedText()
        + Gets the text of this component, with formatting codes added for rendering.
        Specified by:
        getFormattedText in interface IChatComponent
      • createDeepCopyIterator

        public static java.util.Iterator<IChatComponent> createDeepCopyIterator​(java.lang.Iterable<IChatComponent> components)
        + Creates an iterator that iterates over the given components, returning deep copies of each component in turn so that the properties of the returned objects will remain externally consistent after being returned.
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object