Interface TextLine

    • Method Detail

      • setText

        TextLine setText​(String text)
        Set the text to print.
        Parameters:
        text - Text to print, the toString method of the object will be used.
        Returns:
        This object for chaining.
      • setText

        TextLine setText​(be.yildizgames.common.client.translation.TranslationKey key)
      • setText

        TextLine setText​(be.yildizgames.common.client.translation.TranslationKey.MultiKey key)
      • setText

        TextLine setText​(int i)
        Set the text to print.
        Parameters:
        i - Text to print, the int will be converted to a string message.
        Returns:
        This object for chaining.
      • setColor

        TextLine setColor​(be.yildizgames.module.color.Color color)
        Set a new color to this text.
        Parameters:
        color - Color to set.
        Returns:
        This object for chaining.
      • setFont

        void setFont​(Font font)
        Set the text font.
        Parameters:
        font - New font to use.
      • setTextPosition

        TextLine setTextPosition​(TextLine.TextPosition textPosition)
        Set the text alignment.
        Parameters:
        textPosition - Text alignment.
        Returns:
        This object for chaining.
      • getContent

        String getContent()
        Returns:
        The text content.