Package mcp.mobius.waila.api
Interface ITooltip
The tooltip object that Waila will show.
-
Method Summary
Modifier and TypeMethodDescriptionaddLine()
Add a new line to the tooltip.default void
addLine
(ITooltipComponent component) Add a new line to the tooltip.default void
Add a new line to the tooltip.getLine
(int index) Returns the line on this index.getLine
(ResourceLocation tag) Returns the line with specified tag, if any.int
setLine
(ResourceLocation tag) Replace the line that has the tag with a new line.default void
setLine
(ResourceLocation tag, ITooltipComponent component) Replace the line that has the tag with a new line.default void
setLine
(ResourceLocation tag, Component component) Replace the line that has the tag with a new line.
-
Method Details
-
getLineCount
int getLineCount() -
getLine
Returns the line on this index.Note: position dependant, you can't access head tooltip in
appendBody
. To access all tooltip, useIEventListener.onHandleTooltip(mcp.mobius.waila.api.ITooltip, mcp.mobius.waila.api.ICommonAccessor, mcp.mobius.waila.api.IPluginConfig)
. -
addLine
ITooltipLine addLine()Add a new line to the tooltip. -
setLine
Replace the line that has the tag with a new line.- See Also:
-
getLine
Returns the line with specified tag, if any.- See Also:
-
addLine
Add a new line to the tooltip. -
addLine
Add a new line to the tooltip. -
setLine
Replace the line that has the tag with a new line.- See Also:
-
setLine
Replace the line that has the tag with a new line.- See Also:
-