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_310600_, boolean p_310032_, ScreenRectangle p_312185_) void
refreshTooltipForNextRenderPass
(boolean p_311474_, boolean p_312586_, ScreenRectangle p_311212_) void
setDelay
(int p_311519_) 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_311519_) -
create
-
create
-
updateNarration
- Specified by:
updateNarration
in interfaceNarrationSupplier
-
toCharSequence
-
splitTooltip
-