Class FontHelper

java.lang.Object
net.createmod.catnip.lang.FontHelper

public final class FontHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final record 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<net.minecraft.network.chat.Component>
     
    static List<net.minecraft.network.chat.Component>
    cutStringTextComponent(String s, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle)
     
    static List<net.minecraft.network.chat.Component>
    cutStringTextComponent(String c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle, int indent)
     
    static List<net.minecraft.network.chat.Component>
    cutTextComponent(net.minecraft.network.chat.Component c, FontHelper.Palette palette)
     
    static List<net.minecraft.network.chat.Component>
    cutTextComponent(net.minecraft.network.chat.Component c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle)
     
    static List<net.minecraft.network.chat.Component>
    cutTextComponent(net.minecraft.network.chat.Component c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle, int indent)
     
    static net.minecraft.network.chat.Style
    styleFromColor(int hex)
     
    static net.minecraft.network.chat.Style
    styleFromColor(net.minecraft.ChatFormatting color)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • styleFromColor

      public static net.minecraft.network.chat.Style styleFromColor(net.minecraft.ChatFormatting color)
    • styleFromColor

      public static net.minecraft.network.chat.Style styleFromColor(int hex)
    • cutStringTextComponent

      public static List<net.minecraft.network.chat.Component> cutStringTextComponent(String s, FontHelper.Palette palette)
    • cutTextComponent

      public static List<net.minecraft.network.chat.Component> cutTextComponent(net.minecraft.network.chat.Component c, FontHelper.Palette palette)
    • cutStringTextComponent

      public static List<net.minecraft.network.chat.Component> cutStringTextComponent(String s, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle)
    • cutTextComponent

      public static List<net.minecraft.network.chat.Component> cutTextComponent(net.minecraft.network.chat.Component c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle)
    • cutStringTextComponent

      public static List<net.minecraft.network.chat.Component> cutStringTextComponent(String c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle, int indent)
    • cutTextComponent

      public static List<net.minecraft.network.chat.Component> cutTextComponent(net.minecraft.network.chat.Component c, net.minecraft.network.chat.Style primaryStyle, net.minecraft.network.chat.Style highlightStyle, int indent)