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/BundleTooltipComponent
intermediary net/minecraft/class_5682
official fwf
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private static final Text
private static final Text
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private final BundleContentsComponent
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
drawEmptyDescription
(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private void
drawEmptyTooltip
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private static void
drawExtraItemsCount
(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext) private void
drawItem
(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext) void
drawItems
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private void
drawNonEmptyTooltip
(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) private void
drawProgressBar
(int x, int y, TextRenderer textRenderer, DrawContext drawContext) private void
drawSelectedItemTooltip
(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width) firstStacksInContents
(int numberOfStacksShown) private static int
getDescriptionHeight
(TextRenderer textRenderer) int
getHeight
(TextRenderer textRenderer) private static int
getHeightOfEmpty
(TextRenderer textRenderer) private int
private int
private int
private Identifier
private int
getRows()
private int
int
getWidth
(TextRenderer textRenderer) private int
getXMargin
(int width) 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.private int
numContentItemsAfter
(List<ItemStack> items) private static boolean
shouldDrawExtraItemsCount
(boolean hasMoreItems, int column, int row) private static boolean
shouldDrawItem
(List<ItemStack> items, int itemIndex) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_BORDER_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_52812
Lnet/minecraft/class_5682;field_52812:Lnet/minecraft/class_2960;
official a
Lfwf;a:Lalz;
-
BUNDLE_PROGRESS_BAR_FILL_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESS_BAR_FILL_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_FILL_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_54011
Lnet/minecraft/class_5682;field_54011:Lnet/minecraft/class_2960;
official b
Lfwf;b:Lalz;
-
BUNDLE_PROGRESS_BAR_FULL_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_PROGRESS_BAR_FULL_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_PROGRESS_BAR_FULL_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_54012
Lnet/minecraft/class_5682;field_54012:Lnet/minecraft/class_2960;
official c
Lfwf;c:Lalz;
-
BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_54270
Lnet/minecraft/class_5682;field_54270:Lnet/minecraft/class_2960;
official d
Lfwf;d:Lalz;
-
BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_54271
Lnet/minecraft/class_5682;field_54271:Lnet/minecraft/class_2960;
official e
Lfwf;e:Lalz;
-
BUNDLE_SLOT_BACKGROUND_TEXTURE
- Mappings:
Namespace Name Mixin selector named BUNDLE_SLOT_BACKGROUND_TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_SLOT_BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_54972
Lnet/minecraft/class_5682;field_54972:Lnet/minecraft/class_2960;
official f
Lfwf;f:Lalz;
-
SLOTS_PER_ROW
private static final int SLOTS_PER_ROW- See Also:
- Mappings:
Namespace Name Mixin selector named SLOTS_PER_ROW
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;SLOTS_PER_ROW:I
intermediary field_52813
Lnet/minecraft/class_5682;field_52813:I
official g
Lfwf;g:I
-
SLOT_DIMENSION
private static final int SLOT_DIMENSION- See Also:
- Mappings:
Namespace Name Mixin selector named SLOT_DIMENSION
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;SLOT_DIMENSION:I
intermediary field_52814
Lnet/minecraft/class_5682;field_52814:I
official h
Lfwf;h:I
-
ROW_WIDTH
private static final int ROW_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named ROW_WIDTH
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;ROW_WIDTH:I
intermediary field_52815
Lnet/minecraft/class_5682;field_52815:I
official i
Lfwf;i:I
-
field_52816
private static final int field_52816- See Also:
- Mappings:
Namespace Name Mixin selector named field_52816
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52816:I
intermediary field_52816
Lnet/minecraft/class_5682;field_52816:I
official j
Lfwf;j:I
-
field_52817
private static final int field_52817- See Also:
- Mappings:
Namespace Name Mixin selector named field_52817
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52817:I
intermediary field_52817
Lnet/minecraft/class_5682;field_52817:I
official k
Lfwf;k:I
-
field_52818
private static final int field_52818- See Also:
- Mappings:
Namespace Name Mixin selector named field_52818
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52818:I
intermediary field_52818
Lnet/minecraft/class_5682;field_52818:I
official l
Lfwf;l:I
-
PROGRESS_BAR_WIDTH
private static final int PROGRESS_BAR_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named PROGRESS_BAR_WIDTH
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;PROGRESS_BAR_WIDTH:I
intermediary field_52819
Lnet/minecraft/class_5682;field_52819:I
official m
Lfwf;m:I
-
field_52820
private static final int field_52820- See Also:
- Mappings:
Namespace Name Mixin selector named field_52820
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;field_52820:I
intermediary field_52820
Lnet/minecraft/class_5682;field_52820:I
official n
Lfwf;n:I
-
BUNDLE_FULL
- Mappings:
Namespace Name Mixin selector named BUNDLE_FULL
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_FULL:Lnet/minecraft/text/Text;
intermediary field_52821
Lnet/minecraft/class_5682;field_52821:Lnet/minecraft/class_2561;
official o
Lfwf;o:Lxv;
-
BUNDLE_EMPTY
- Mappings:
Namespace Name Mixin selector named BUNDLE_EMPTY
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_EMPTY:Lnet/minecraft/text/Text;
intermediary field_52822
Lnet/minecraft/class_5682;field_52822:Lnet/minecraft/class_2561;
official p
Lfwf;p:Lxv;
-
BUNDLE_EMPTY_DESCRIPTION
- Mappings:
Namespace Name Mixin selector named BUNDLE_EMPTY_DESCRIPTION
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;BUNDLE_EMPTY_DESCRIPTION:Lnet/minecraft/text/Text;
intermediary field_52823
Lnet/minecraft/class_5682;field_52823:Lnet/minecraft/class_2561;
official q
Lfwf;q:Lxv;
-
bundleContents
- Mappings:
Namespace Name Mixin selector named bundleContents
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;bundleContents:Lnet/minecraft/component/type/BundleContentsComponent;
intermediary field_49537
Lnet/minecraft/class_5682;field_49537:Lnet/minecraft/class_9276;
official r
Lfwf;r:Lczs;
-
-
Constructor Details
-
BundleTooltipComponent
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;<init>(Lnet/minecraft/component/type/BundleContentsComponent;)V
intermediary <init>
Lnet/minecraft/class_5682;<init>(Lnet/minecraft/class_9276;)V
official <init>
Lfwf;<init>(Lczs;)V
-
-
Method Details
-
getHeight
- Specified by:
getHeight
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector named getHeight
Lnet/minecraft/client/gui/tooltip/TooltipComponent;getHeight(Lnet/minecraft/client/font/TextRenderer;)I
intermediary method_32661
Lnet/minecraft/class_5684;method_32661(Lnet/minecraft/class_327;)I
official a
Lfwh;a(Lfnp;)I
-
getWidth
- Specified by:
getWidth
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector named getWidth
Lnet/minecraft/client/gui/tooltip/TooltipComponent;getWidth(Lnet/minecraft/client/font/TextRenderer;)I
intermediary method_32664
Lnet/minecraft/class_5684;method_32664(Lnet/minecraft/class_327;)I
official b
Lfwh;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:
isSticky
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector named isSticky
Lnet/minecraft/client/gui/tooltip/TooltipComponent;isSticky()Z
intermediary method_62003
Lnet/minecraft/class_5684;method_62003()Z
official a
Lfwh;a()Z
-
getHeightOfEmpty
- Mappings:
Namespace Name Mixin selector named getHeightOfEmpty
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getHeightOfEmpty(Lnet/minecraft/client/font/TextRenderer;)I
intermediary method_62016
Lnet/minecraft/class_5682;method_62016(Lnet/minecraft/class_327;)I
official c
Lfwf;c(Lfnp;)I
-
getHeightOfNonEmpty
private int getHeightOfNonEmpty()- Mappings:
Namespace Name Mixin selector named getHeightOfNonEmpty
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getHeightOfNonEmpty()I
intermediary method_52756
Lnet/minecraft/class_5682;method_52756()I
official b
Lfwf;b()I
-
getRowsHeight
private int getRowsHeight()- Mappings:
Namespace Name Mixin selector named getRowsHeight
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getRowsHeight()I
intermediary method_62015
Lnet/minecraft/class_5682;method_62015()I
official c
Lfwf;c()I
-
getXMargin
private int getXMargin(int width) - Mappings:
Namespace Name Mixin selector named getXMargin
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getXMargin(I)I
intermediary method_63508
Lnet/minecraft/class_5682;method_63508(I)I
official a
Lfwf;a(I)I
-
getRows
private int getRows()- Mappings:
Namespace Name Mixin selector named getRows
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getRows()I
intermediary method_33290
Lnet/minecraft/class_5682;method_33290()I
official d
Lfwf;d()I
-
getNumVisibleSlots
private int getNumVisibleSlots()- Mappings:
Namespace Name Mixin selector named getNumVisibleSlots
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getNumVisibleSlots()I
intermediary method_62019
Lnet/minecraft/class_5682;method_62019()I
official e
Lfwf;e()I
-
drawItems
public void drawItems(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context) - Specified by:
drawItems
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector named drawItems
Lnet/minecraft/client/gui/tooltip/TooltipComponent;drawItems(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)V
intermediary method_32666
Lnet/minecraft/class_5684;method_32666(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)V
official a
Lfwh;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 drawEmptyTooltip
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)V
intermediary method_62014
Lnet/minecraft/class_5682;method_62014(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)V
official b
Lfwf;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 drawNonEmptyTooltip
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawNonEmptyTooltip(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)V
intermediary method_62017
Lnet/minecraft/class_5682;method_62017(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)V
official c
Lfwf;c(Lfnp;IIIILfnr;)V
-
firstStacksInContents
- Mappings:
Namespace Name Mixin selector named firstStacksInContents
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;firstStacksInContents(I)Ljava/util/List;
intermediary method_62004
Lnet/minecraft/class_5682;method_62004(I)Ljava/util/List;
official b
Lfwf;b(I)Ljava/util/List;
-
shouldDrawExtraItemsCount
private static boolean shouldDrawExtraItemsCount(boolean hasMoreItems, int column, int row) - Mappings:
Namespace Name Mixin selector named shouldDrawExtraItemsCount
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;shouldDrawExtraItemsCount(ZII)Z
intermediary method_62012
Lnet/minecraft/class_5682;method_62012(ZII)Z
official a
Lfwf;a(ZII)Z
-
shouldDrawItem
- Mappings:
Namespace Name Mixin selector named shouldDrawItem
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;shouldDrawItem(Ljava/util/List;I)Z
intermediary method_62011
Lnet/minecraft/class_5682;method_62011(Ljava/util/List;I)Z
official a
Lfwf;a(Ljava/util/List;I)Z
-
numContentItemsAfter
- Mappings:
Namespace Name Mixin selector named numContentItemsAfter
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;numContentItemsAfter(Ljava/util/List;)I
intermediary method_62010
Lnet/minecraft/class_5682;method_62010(Ljava/util/List;)I
official a
Lfwf;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 drawItem
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawItem(IIILjava/util/List;ILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_62006
Lnet/minecraft/class_5682;method_62006(IIILjava/util/List;ILnet/minecraft/class_327;Lnet/minecraft/class_332;)V
official a
Lfwf;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 drawExtraItemsCount
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawExtraItemsCount(IIILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_62005
Lnet/minecraft/class_5682;method_62005(IIILnet/minecraft/class_327;Lnet/minecraft/class_332;)V
official a
Lfwf;a(IIILfnp;Lfnr;)V
-
drawSelectedItemTooltip
private void drawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width) - Mappings:
Namespace Name Mixin selector named drawSelectedItemTooltip
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawSelectedItemTooltip(Lnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;III)V
intermediary method_62009
Lnet/minecraft/class_5682;method_62009(Lnet/minecraft/class_327;Lnet/minecraft/class_332;III)V
official a
Lfwf;a(Lfnp;Lfnr;III)V
-
drawProgressBar
- Mappings:
Namespace Name Mixin selector named drawProgressBar
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawProgressBar(IILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_62007
Lnet/minecraft/class_5682;method_62007(IILnet/minecraft/class_327;Lnet/minecraft/class_332;)V
official a
Lfwf;a(IILfnp;Lfnr;)V
-
drawEmptyDescription
private static void drawEmptyDescription(int x, int y, TextRenderer textRenderer, DrawContext drawContext) - Mappings:
Namespace Name Mixin selector named drawEmptyDescription
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawEmptyDescription(IILnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/gui/DrawContext;)V
intermediary method_62013
Lnet/minecraft/class_5682;method_62013(IILnet/minecraft/class_327;Lnet/minecraft/class_332;)V
official b
Lfwf;b(IILfnp;Lfnr;)V
-
getDescriptionHeight
- Mappings:
Namespace Name Mixin selector named getDescriptionHeight
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getDescriptionHeight(Lnet/minecraft/client/font/TextRenderer;)I
intermediary method_62018
Lnet/minecraft/class_5682;method_62018(Lnet/minecraft/class_327;)I
official d
Lfwf;d(Lfnp;)I
-
getProgressBarFill
private int getProgressBarFill()- Mappings:
Namespace Name Mixin selector named getProgressBarFill
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarFill()I
intermediary method_62020
Lnet/minecraft/class_5682;method_62020()I
official f
Lfwf;f()I
-
getProgressBarFillTexture
- Mappings:
Namespace Name Mixin selector named getProgressBarFillTexture
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarFillTexture()Lnet/minecraft/util/Identifier;
intermediary method_63509
Lnet/minecraft/class_5682;method_63509()Lnet/minecraft/class_2960;
official g
Lfwf;g()Lalz;
-
getProgressBarLabel
- Mappings:
Namespace Name Mixin selector named getProgressBarLabel
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getProgressBarLabel()Lnet/minecraft/text/Text;
intermediary method_62021
Lnet/minecraft/class_5682;method_62021()Lnet/minecraft/class_2561;
official h
Lfwf;h()Lxv;
-