Package net.minecraft.client.gui.tooltip
Interface TooltipComponent
- All Known Implementing Classes:
BundleTooltipComponent,OrderedTextTooltipComponent,ProfilesTooltipComponent
- Mappings:
Namespace Name named net/minecraft/client/gui/tooltip/TooltipComponentintermediary net/minecraft/class_5684official fsq
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddrawItems(TextRenderer textRenderer, int x, int y, int int2, int int3, DrawContext drawContext) default voiddrawText(TextRenderer textRenderer, int x, int y, Matrix4f matrix, VertexConsumerProvider.Immediate vertexConsumers) intgetHeight(TextRenderer textRenderer) intgetWidth(TextRenderer textRenderer) default booleanisSticky()Returns whether this tooltip component should be visible when the item that it is on is focused, regardless of whether the cursor is hovering over another item.static TooltipComponentof(TooltipData tooltipData) static TooltipComponentof(OrderedText text)
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/client/gui/tooltip/TooltipComponent;of(Lnet/minecraft/text/OrderedText;)Lnet/minecraft/client/gui/tooltip/TooltipComponent;intermediary method_32662Lnet/minecraft/class_5684;method_32662(Lnet/minecraft/class_5481;)Lnet/minecraft/class_5684;official aLfsq;a(Layr;)Lfsq;
-
of
- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/client/gui/tooltip/TooltipComponent;of(Lnet/minecraft/item/tooltip/TooltipData;)Lnet/minecraft/client/gui/tooltip/TooltipComponent;intermediary method_32663Lnet/minecraft/class_5684;method_32663(Lnet/minecraft/class_5632;)Lnet/minecraft/class_5684;official aLfsq;a(Lctg;)Lfsq;
-
getHeight
- Mappings:
Namespace Name Mixin selector named getHeightLnet/minecraft/client/gui/tooltip/TooltipComponent;getHeight(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_32661Lnet/minecraft/class_5684;method_32661(Lnet/minecraft/class_327;)Iofficial aLfsq;a(Lfjz;)I
-
getWidth
- Mappings:
Namespace Name Mixin selector named getWidthLnet/minecraft/client/gui/tooltip/TooltipComponent;getWidth(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_32664Lnet/minecraft/class_5684;method_32664(Lnet/minecraft/class_327;)Iofficial bLfsq;b(Lfjz;)I
-
isSticky
default boolean isSticky()Returns whether this tooltip component should be visible when the item that it is on is focused, regardless of whether the cursor is hovering over another item.- Mappings:
Namespace Name Mixin selector named isStickyLnet/minecraft/client/gui/tooltip/TooltipComponent;isSticky()Zintermediary method_62003Lnet/minecraft/class_5684;method_62003()Zofficial aLfsq;a()Z
-
drawText
default void drawText(TextRenderer textRenderer, int x, int y, Matrix4f matrix, VertexConsumerProvider.Immediate vertexConsumers) - Mappings:
Namespace Name Mixin selector named drawTextLnet/minecraft/client/gui/tooltip/TooltipComponent;drawText(Lnet/minecraft/client/font/TextRenderer;IILorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;)Vintermediary method_32665Lnet/minecraft/class_5684;method_32665(Lnet/minecraft/class_327;IILorg/joml/Matrix4f;Lnet/minecraft/class_4597$class_4598;)Vofficial aLfsq;a(Lfjz;IILorg/joml/Matrix4f;Lghl$a;)V
-
drawItems
default void drawItems(TextRenderer textRenderer, int x, int y, int int2, int int3, DrawContext drawContext) - Mappings:
Namespace Name Mixin selector named drawItemsLnet/minecraft/client/gui/tooltip/TooltipComponent;drawItems(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)Vintermediary method_32666Lnet/minecraft/class_5684;method_32666(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)Vofficial aLfsq;a(Lfjz;IIIILfkb;)V
-