Class TooltipHelper
java.lang.Object
com.simibubi.create.foundation.item.TooltipHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHint(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.MutableComponentholdShift(net.createmod.catnip.lang.FontHelper.Palette palette, boolean highlighted) static StringmakeProgressBar(int length, int filledLength) static net.minecraft.network.chat.StylestyleFromColor(int hex) static net.minecraft.network.chat.StylestyleFromColor(net.minecraft.ChatFormatting color)
-
Field Details
-
MAX_WIDTH_PER_LINE
public static final int MAX_WIDTH_PER_LINE- See Also:
-
-
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
-
makeProgressBar
-
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
-
cutTextComponent
public static List<net.minecraft.network.chat.Component> cutTextComponent(net.minecraft.network.chat.Component c, net.createmod.catnip.lang.FontHelper.Palette palette) -
cutStringTextComponent
-
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
-
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)
-