Class Tooltip
java.lang.Object
net.minecraft.client.gui.components.Tooltip
- All Implemented Interfaces:
NarrationSupplier
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<FormattedCharSequence>
private long
private static final int
private final Component
private int
private final Component
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Tooltip
static Tooltip
protected ClientTooltipPositioner
createTooltipPositioner
(boolean p_306065_, boolean p_306270_, ScreenRectangle p_305822_) void
refreshTooltipForNextRenderPass
(boolean p_306201_, boolean p_306100_, ScreenRectangle p_305970_) void
setDelay
(int p_306340_) static List<FormattedCharSequence>
splitTooltip
(Minecraft p_259133_, Component p_260172_) toCharSequence
(Minecraft p_260243_) void
updateNarration
(NarrationElementOutput p_260330_)
-
Field Details
-
MAX_WIDTH
private static final int MAX_WIDTH- See Also:
-
message
-
cachedTooltip
-
narration
-
msDelay
private int msDelay -
hoverOrFocusedStartTime
private long hoverOrFocusedStartTime -
wasHoveredOrFocused
private boolean wasHoveredOrFocused
-
-
Constructor Details
-
Tooltip
-
-
Method Details
-
setDelay
public void setDelay(int p_306340_) -
create
-
create
-
updateNarration
- Specified by:
updateNarration
in interfaceNarrationSupplier
-
toCharSequence
-
splitTooltip
-