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 fwf
-
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 aLfwf;a:Lalz;
-
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 bLfwf;b:Lalz;
-
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 cLfwf;c:Lalz;
-
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 dLfwf;d:Lalz;
-
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 eLfwf;e:Lalz;
-
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 fLfwf;f:Lalz;
-
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 gLfwf;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 hLfwf;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 iLfwf;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 jLfwf;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 kLfwf;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 lLfwf;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 mLfwf;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 nLfwf;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 oLfwf;o:Lxv;
-
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 pLfwf;p:Lxv;
-
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 qLfwf;q:Lxv;
-
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 rLfwf;r:Lczs;
-
-
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>Lfwf;<init>(Lczs;)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 aLfwh;a(Lfnp;)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 bLfwh;b(Lfnp;)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 aLfwh;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 cLfwf;c(Lfnp;)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 bLfwf;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 cLfwf;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 aLfwf;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 dLfwf;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 eLfwf;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 aLfwh;a(Lfnp;IIIILfnr;)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 bLfwf;b(Lfnp;IIIILfnr;)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 cLfwf;c(Lfnp;IIIILfnr;)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 bLfwf;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 aLfwf;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 aLfwf;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 aLfwf;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 aLfwf;a(IIILjava/util/List;ILfnp;Lfnr;)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 aLfwf;a(IIILfnp;Lfnr;)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 aLfwf;a(Lfnp;Lfnr;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 aLfwf;a(IILfnp;Lfnr;)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 bLfwf;b(IILfnp;Lfnr;)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 dLfwf;d(Lfnp;)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 fLfwf;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 gLfwf;g()Lalz;
-
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 hLfwf;h()Lxv;
-