Interface IFontExtension


public interface IFontExtension
Extension interface for Font.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.chat.FormattedText
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.network.chat.FormattedText
    ellipsize(net.minecraft.network.chat.FormattedText text, int maxWidth)
    If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
    net.minecraft.client.gui.Font
     
  • Field Details

    • ELLIPSIS

      static final net.minecraft.network.chat.FormattedText ELLIPSIS
  • Method Details

    • self

      net.minecraft.client.gui.Font self()
    • ellipsize

      default net.minecraft.network.chat.FormattedText ellipsize(net.minecraft.network.chat.FormattedText text, int maxWidth)
      If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
      Parameters:
      text - the text to ellipsize if needed
      maxWidth - the maximum width of the text
      Returns:
      the ellipsized text