Package net.minecraft.client.gui.tooltip
Class BundleTooltipComponent
java.lang.Object
net.minecraft.client.gui.tooltip.BundleTooltipComponent
- All Implemented Interfaces:
TooltipComponent
- Mappings:
Namespace Name named net/minecraft/client/gui/tooltip/BundleTooltipComponentintermediary net/minecraft/class_5682official fwu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Textprivate static final Textprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate final BundleContentsComponentprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddrawEmptyDescription(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private voiddrawEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private static voiddrawExtraItemsCount(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext) private voiddrawItem(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext) voiddrawItems(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private voiddrawNonEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private voiddrawProgressBar(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private voiddrawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width) firstStacksInContents(int numberOfStacksShown) private static intgetDescriptionHeight(TextRenderer textRenderer) intgetHeight(TextRenderer textRenderer) private static intgetHeightOfEmpty(TextRenderer textRenderer) private intprivate intprivate intprivate Identifierprivate intgetRows()private intintgetWidth(TextRenderer textRenderer) private intgetXMargin(int width) 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.private intnumContentItemsAfter(List<ItemStack> items) private static booleanshouldDrawExtraItemsCount(boolean hasMoreItems, int column, int row) private static booleanshouldDrawItem(List<ItemStack> items, int itemIndex) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.tooltip.TooltipComponent
drawText
-
Field Details
-
BUNDLE_PROGRESS_BAR_BORDER_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESS_BAR_BORDER_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_BORDER_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_52812Lnet/minecraft/class_5682;field_52812:Lnet/minecraft/class_2960;official aLfwu;a:Lakv;
-
BUNDLE_PROGRESS_BAR_FILL_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESS_BAR_FILL_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_FILL_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_54011Lnet/minecraft/class_5682;field_54011:Lnet/minecraft/class_2960;official bLfwu;b:Lakv;
-
BUNDLE_PROGRESS_BAR_FULL_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESS_BAR_FULL_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_FULL_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_54012Lnet/minecraft/class_5682;field_54012:Lnet/minecraft/class_2960;official cLfwu;c:Lakv;
-
BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_54270Lnet/minecraft/class_5682;field_54270:Lnet/minecraft/class_2960;official dLfwu;d:Lakv;
-
BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_54271Lnet/minecraft/class_5682;field_54271:Lnet/minecraft/class_2960;official eLfwu;e:Lakv;
-
BUNDLE_SLOT_BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_BACKGROUND_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_54972Lnet/minecraft/class_5682;field_54972:Lnet/minecraft/class_2960;official fLfwu;f:Lakv;
-
SLOTS_PER_ROW
private static final int SLOTS_PER_ROW- See Also:
- Mappings:
Namespace Name Mixin selector named SLOTS_PER_ROWLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;SLOTS_PER_ROW:Iintermediary field_52813Lnet/minecraft/class_5682;field_52813:Iofficial gLfwu;g:I
-
SLOT_DIMENSION
private static final int SLOT_DIMENSION- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_DIMENSIONLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;SLOT_DIMENSION:Iintermediary field_52814Lnet/minecraft/class_5682;field_52814:Iofficial hLfwu;h:I
-
ROW_WIDTH
private static final int ROW_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named ROW_WIDTHLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;ROW_WIDTH:Iintermediary field_52815Lnet/minecraft/class_5682;field_52815:Iofficial iLfwu;i:I
-
field_52816
private static final int field_52816- See Also:
- Mappings:
Namespace Name Mixin selector named field_52816Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52816:Iintermediary field_52816Lnet/minecraft/class_5682;field_52816:Iofficial jLfwu;j:I
-
field_52817
private static final int field_52817- See Also:
- Mappings:
Namespace Name Mixin selector named field_52817Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52817:Iintermediary field_52817Lnet/minecraft/class_5682;field_52817:Iofficial kLfwu;k:I
-
field_52818
private static final int field_52818- See Also:
- Mappings:
Namespace Name Mixin selector named field_52818Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52818:Iintermediary field_52818Lnet/minecraft/class_5682;field_52818:Iofficial lLfwu;l:I
-
PROGRESS_BAR_WIDTH
private static final int PROGRESS_BAR_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named PROGRESS_BAR_WIDTHLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;PROGRESS_BAR_WIDTH:Iintermediary field_52819Lnet/minecraft/class_5682;field_52819:Iofficial mLfwu;m:I
-
field_52820
private static final int field_52820- See Also:
- Mappings:
Namespace Name Mixin selector named field_52820Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52820:Iintermediary field_52820Lnet/minecraft/class_5682;field_52820:Iofficial nLfwu;n:I
-
BUNDLE_FULL
- Mappings:
Namespace Name Mixin selector named BUNDLE_FULLLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_FULL:Lnet/minecraft/text/Text;intermediary field_52821Lnet/minecraft/class_5682;field_52821:Lnet/minecraft/class_2561;official oLfwu;o:Lwp;
-
BUNDLE_EMPTY
- Mappings:
Namespace Name Mixin selector named BUNDLE_EMPTYLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_EMPTY:Lnet/minecraft/text/Text;intermediary field_52822Lnet/minecraft/class_5682;field_52822:Lnet/minecraft/class_2561;official pLfwu;p:Lwp;
-
BUNDLE_EMPTY_DESCRIPTION
- Mappings:
Namespace Name Mixin selector named BUNDLE_EMPTY_DESCRIPTIONLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_EMPTY_DESCRIPTION:Lnet/minecraft/text/Text;intermediary field_52823Lnet/minecraft/class_5682;field_52823:Lnet/minecraft/class_2561;official qLfwu;q:Lwp;
-
bundleContents
- Mappings:
Namespace Name Mixin selector named bundleContentsLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;bundleContents:Lnet/minecraft/component/type/BundleContentsComponent;intermediary field_49537Lnet/minecraft/class_5682;field_49537:Lnet/minecraft/class_9276;official rLfwu;r:Lcyu;
-
-
Constructor Details
-
BundleTooltipComponent
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;<init>(Lnet/minecraft/component/type/BundleContentsComponent;)Vintermediary <init>Lnet/minecraft/class_5682;<init>(Lnet/minecraft/class_9276;)Vofficial <init>Lfwu;<init>(Lcyu;)V
-
-
Method Details
-
getHeight
- Specified by:
getHeightin interfaceTooltipComponent- 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 aLfww;a(Lfod;)I
-
getWidth
- Specified by:
getWidthin interfaceTooltipComponent- 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 bLfww;b(Lfod;)I
-
isSticky
public 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.- Specified by:
isStickyin interfaceTooltipComponent- Mappings:
Namespace Name Mixin selector named isStickyLnet/minecraft/client/gui/tooltip/TooltipComponent;isSticky()Zintermediary method_62003Lnet/minecraft/class_5684;method_62003()Zofficial aLfww;a()Z
-
getHeightOfEmpty
- Mappings:
Namespace Name Mixin selector named getHeightOfEmptyLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getHeightOfEmpty(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_62016Lnet/minecraft/class_5682;method_62016(Lnet/minecraft/class_327;)Iofficial cLfwu;c(Lfod;)I
-
getHeightOfNonEmpty
private int getHeightOfNonEmpty()- Mappings:
Namespace Name Mixin selector named getHeightOfNonEmptyLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getHeightOfNonEmpty()Iintermediary method_52756Lnet/minecraft/class_5682;method_52756()Iofficial bLfwu;b()I
-
getRowsHeight
private int getRowsHeight()- Mappings:
Namespace Name Mixin selector named getRowsHeightLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getRowsHeight()Iintermediary method_62015Lnet/minecraft/class_5682;method_62015()Iofficial cLfwu;c()I
-
getXMargin
private int getXMargin(int width) - Mappings:
Namespace Name Mixin selector named getXMarginLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getXMargin(I)Iintermediary method_63508Lnet/minecraft/class_5682;method_63508(I)Iofficial aLfwu;a(I)I
-
getRows
private int getRows()- Mappings:
Namespace Name Mixin selector named getRowsLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getRows()Iintermediary method_33290Lnet/minecraft/class_5682;method_33290()Iofficial dLfwu;d()I
-
getNumVisibleSlots
private int getNumVisibleSlots()- Mappings:
Namespace Name Mixin selector named getNumVisibleSlotsLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getNumVisibleSlots()Iintermediary method_62019Lnet/minecraft/class_5682;method_62019()Iofficial eLfwu;e()I
-
drawItems
public void drawItems(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) - Specified by:
drawItemsin interfaceTooltipComponent- 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 aLfww;a(Lfod;IIIILfof;)V
-
drawEmptyTooltip
private void drawEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) - Mappings:
Namespace Name Mixin selector named drawEmptyTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)Vintermediary method_62014Lnet/minecraft/class_5682;method_62014(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)Vofficial bLfwu;b(Lfod;IIIILfof;)V
-
drawNonEmptyTooltip
private void drawNonEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) - Mappings:
Namespace Name Mixin selector named drawNonEmptyTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawNonEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)Vintermediary method_62017Lnet/minecraft/class_5682;method_62017(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)Vofficial cLfwu;c(Lfod;IIIILfof;)V
-
firstStacksInContents
- Mappings:
Namespace Name Mixin selector named firstStacksInContentsLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;firstStacksInContents(I)Ljava/util/List;intermediary method_62004Lnet/minecraft/class_5682;method_62004(I)Ljava/util/List;official bLfwu;b(I)Ljava/util/List;
-
shouldDrawExtraItemsCount
private static boolean shouldDrawExtraItemsCount(boolean hasMoreItems, int column, int row) - Mappings:
Namespace Name Mixin selector named shouldDrawExtraItemsCountLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;shouldDrawExtraItemsCount(ZII)Zintermediary method_62012Lnet/minecraft/class_5682;method_62012(ZII)Zofficial aLfwu;a(ZII)Z
-
shouldDrawItem
- Mappings:
Namespace Name Mixin selector named shouldDrawItemLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;shouldDrawItem(Ljava/util/List;I)Zintermediary method_62011Lnet/minecraft/class_5682;method_62011(Ljava/util/List;I)Zofficial aLfwu;a(Ljava/util/List;I)Z
-
numContentItemsAfter
- Mappings:
Namespace Name Mixin selector named numContentItemsAfterLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;numContentItemsAfter(Ljava/util/List;)Iintermediary method_62010Lnet/minecraft/class_5682;method_62010(Ljava/util/List;)Iofficial aLfwu;a(Ljava/util/List;)I
-
drawItem
private void drawItem(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext) - Mappings:
Namespace Name Mixin selector named drawItemLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawItem(IIILjava/util/List;ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_62006Lnet/minecraft/class_5682;method_62006(IIILjava/util/List;ILnet/minecraft/class_327;Lnet/minecraft/class_332;)Vofficial aLfwu;a(IIILjava/util/List;ILfod;Lfof;)V
-
drawExtraItemsCount
private static void drawExtraItemsCount(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext) - Mappings:
Namespace Name Mixin selector named drawExtraItemsCountLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawExtraItemsCount(IIILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_62005Lnet/minecraft/class_5682;method_62005(IIILnet/minecraft/class_327;Lnet/minecraft/class_332;)Vofficial aLfwu;a(IIILfod;Lfof;)V
-
drawSelectedItemTooltip
private void drawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width) - Mappings:
Namespace Name Mixin selector named drawSelectedItemTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawSelectedItemTooltip(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;III)Vintermediary method_62009Lnet/minecraft/class_5682;method_62009(Lnet/minecraft/class_327;Lnet/minecraft/class_332;III)Vofficial aLfwu;a(Lfod;Lfof;III)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector named drawProgressBarLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawProgressBar(IILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_62007Lnet/minecraft/class_5682;method_62007(IILnet/minecraft/class_327;Lnet/minecraft/class_332;)Vofficial aLfwu;a(IILfod;Lfof;)V
-
drawEmptyDescription
private static void drawEmptyDescription(int x, int y, TextRenderer textRenderer, DrawContext drawContext) - Mappings:
Namespace Name Mixin selector named drawEmptyDescriptionLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawEmptyDescription(IILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_62013Lnet/minecraft/class_5682;method_62013(IILnet/minecraft/class_327;Lnet/minecraft/class_332;)Vofficial bLfwu;b(IILfod;Lfof;)V
-
getDescriptionHeight
- Mappings:
Namespace Name Mixin selector named getDescriptionHeightLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getDescriptionHeight(Lnet/minecraft/client/font/TextRenderer;)Iintermediary method_62018Lnet/minecraft/class_5682;method_62018(Lnet/minecraft/class_327;)Iofficial dLfwu;d(Lfod;)I
-
getProgressBarFill
private int getProgressBarFill()- Mappings:
Namespace Name Mixin selector named getProgressBarFillLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarFill()Iintermediary method_62020Lnet/minecraft/class_5682;method_62020()Iofficial fLfwu;f()I
-
getProgressBarFillTexture
- Mappings:
Namespace Name Mixin selector named getProgressBarFillTextureLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarFillTexture()Lnet/minecraft/util/Identifier;intermediary method_63509Lnet/minecraft/class_5682;method_63509()Lnet/minecraft/class_2960;official gLfwu;g()Lakv;
-
getProgressBarLabel
- Mappings:
Namespace Name Mixin selector named getProgressBarLabelLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarLabel()Lnet/minecraft/text/Text;intermediary method_62021Lnet/minecraft/class_5682;method_62021()Lnet/minecraft/class_2561;official hLfwu;h()Lwp;
-