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 fsk
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate static final Textprivate static final Textprivate 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 voiddrawBackground(int index, DrawContext drawContext, int x, int y) private static voiddrawEmptyDescription(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private voiddrawEmptyTooltip(TextRenderer textRenderer, int x, int y, DrawContext drawContext) private static voiddrawExtraItemsCount(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext) private voiddrawItem(int index, int x, int y, List<ItemStack> items, int seed, TextRenderer textRenderer, DrawContext drawContext) voiddrawItems(TextRenderer textRenderer, int x, int y, DrawContext context) private voiddrawNonEmptyTooltip(TextRenderer textRenderer, int x, int y, DrawContext drawContext) private voiddrawProgressBar(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private voiddrawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y) firstStacksInContents(int numberOfStacksShown) private static intgetDescriptionHeight(TextRenderer textRenderer) intgetHeight(TextRenderer textRenderer) private static intgetHeightOfEmpty(TextRenderer textRenderer) private intprivate intprivate intprivate intgetRows()private intintgetWidth(TextRenderer textRenderer) 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_PROGRESSBAR_BORDER_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESSBAR_BORDER_TEXTURELnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESSBAR_BORDER_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_52812Lnet/minecraft/class_5682;field_52812:Lnet/minecraft/class_2960;official aLfsk;a:Lalc;
-
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 bLfsk;b: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 cLfsk;c: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 dLfsk;d: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 eLfsk;e: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 fLfsk;f: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 gLfsk;g: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 hLfsk;h: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 iLfsk;i: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 jLfsk;j:Lxd;
-
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 kLfsk;k:Lxd;
-
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 lLfsk;l:Lxd;
-
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 mLfsk;m:Lcxz;
-
-
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>Lfsk;<init>(Lcxz;)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 aLfsm;a(Lfjv;)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 bLfsm;b(Lfjv;)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 aLfsm;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 cLfsk;c(Lfjv;)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 bLfsk;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 cLfsk;c()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 dLfsk;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 eLfsk;e()I
-
drawItems
- Specified by:
drawItemsin interfaceTooltipComponent- Mappings:
Namespace Name Mixin selector named drawItemsLnet/minecraft/client/gui/tooltip/TooltipComponent;drawItems(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/client/gui/DrawContext;)Vintermediary method_32666Lnet/minecraft/class_5684;method_32666(Lnet/minecraft/class_327;IILnet/minecraft/class_332;)Vofficial aLfsm;a(Lfjv;IILfjx;)V
-
drawEmptyTooltip
- Mappings:
Namespace Name Mixin selector named drawEmptyTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/client/gui/DrawContext;)Vintermediary method_62014Lnet/minecraft/class_5682;method_62014(Lnet/minecraft/class_327;IILnet/minecraft/class_332;)Vofficial bLfsk;b(Lfjv;IILfjx;)V
-
drawNonEmptyTooltip
- Mappings:
Namespace Name Mixin selector named drawNonEmptyTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawNonEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/client/gui/DrawContext;)Vintermediary method_62017Lnet/minecraft/class_5682;method_62017(Lnet/minecraft/class_327;IILnet/minecraft/class_332;)Vofficial cLfsk;c(Lfjv;IILfjx;)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 aLfsk;a(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 aLfsk;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 aLfsk;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 aLfsk;a(Ljava/util/List;)I
-
drawItem
private void drawItem(int index, int x, int y, List<ItemStack> items, 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 aLfsk;a(IIILjava/util/List;ILfjv;Lfjx;)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 aLfsk;a(IIILfjv;Lfjx;)V
-
drawBackground
- Mappings:
Namespace Name Mixin selector named drawBackgroundLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawBackground(ILnet/minecraft/client/gui/DrawContext;II)Vintermediary method_62008Lnet/minecraft/class_5682;method_62008(ILnet/minecraft/class_332;II)Vofficial aLfsk;a(ILfjx;II)V
-
drawSelectedItemTooltip
private void drawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y) - Mappings:
Namespace Name Mixin selector named drawSelectedItemTooltipLnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawSelectedItemTooltip(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;II)Vintermediary method_62009Lnet/minecraft/class_5682;method_62009(Lnet/minecraft/class_327;Lnet/minecraft/class_332;II)Vofficial aLfsk;a(Lfjv;Lfjx;II)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 aLfsk;a(IILfjv;Lfjx;)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 bLfsk;b(IILfjv;Lfjx;)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 dLfsk;d(Lfjv;)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 fLfsk;f()I
-
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 gLfsk;g()Lxd;
-