Class Tooltip
java.lang.Object
net.minecraft.client.gui.components.Tooltip
- All Implemented Interfaces:
NarrationSupplier
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<FormattedCharSequence> private static final intprivate final Componentprivate final Componentprivate Language -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tooltipstatic Tooltipstatic List<FormattedCharSequence> splitTooltip(Minecraft pMinecraft, Component pMessage) toCharSequence(Minecraft pMinecraft) voidupdateNarration(NarrationElementOutput p_260330_) Updates the narration output with the current narration information.
-
Field Details
-
MAX_WIDTH
private static final int MAX_WIDTH- See Also:
-
message
-
cachedTooltip
-
splitWithLanguage
-
narration
-
-
Constructor Details
-
Tooltip
-
-
Method Details
-
create
-
create
-
updateNarration
Description copied from interface:NarrationSupplierUpdates the narration output with the current narration information.- Specified by:
updateNarrationin interfaceNarrationSupplier- Parameters:
p_260330_- the output to update with narration information.
-
toCharSequence
-
splitTooltip
-