Class TooltipHelper

java.lang.Object
com.simibubi.create.foundation.item.TooltipHelper

public class TooltipHelper extends Object
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addHint(List<net.minecraft.network.chat.Component> tooltip, String hintKey, Object... messageParams)
     
    static List<net.minecraft.network.chat.Component>
    cutStringTextComponent(String s, net.createmod.catnip.lang.FontHelper.Palette palette)
     
    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, net.createmod.catnip.lang.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.MutableComponent
    holdShift(net.createmod.catnip.lang.FontHelper.Palette palette, boolean highlighted)
     
    static String
    makeProgressBar(int length, int filledLength)
     
    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

  • Constructor Details

    • TooltipHelper

      public TooltipHelper()
  • Method Details

    • holdShift

      public static net.minecraft.network.chat.MutableComponent holdShift(net.createmod.catnip.lang.FontHelper.Palette palette, boolean highlighted)
    • addHint

      public static void addHint(List<net.minecraft.network.chat.Component> tooltip, String hintKey, Object... messageParams)
    • makeProgressBar

      public static String makeProgressBar(int length, int filledLength)
    • 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, net.createmod.catnip.lang.FontHelper.Palette palette)
    • cutTextComponent

      public static List<net.minecraft.network.chat.Component> cutTextComponent(net.minecraft.network.chat.Component c, net.createmod.catnip.lang.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)