net.minecraft.client.gui.tooltip

public class BundleTooltipComponent

implements TooltipComponent

net.minecraft.client.gui.screens.inventory.tooltip.ClientBundleTooltip
net.minecraft.class_5682
net.minecraft.client.gui.tooltip.BundleTooltipComponent

Field summary

Modifier and TypeField
private static final Identifier
PROGRESSBAR_BORDER_SPRITE
field_52812
BUNDLE_PROGRESS_BAR_BORDER_TEXTURE
private static final Identifier
PROGRESSBAR_FILL_SPRITE
field_54011
BUNDLE_PROGRESS_BAR_FILL_TEXTURE
private static final Identifier
PROGRESSBAR_FULL_SPRITE
field_54012
BUNDLE_PROGRESS_BAR_FULL_TEXTURE
private static final Identifier
SLOT_HIGHLIGHT_BACK_SPRITE
field_54270
BUNDLE_SLOT_HIGHLIGHT_BACK_TEXTURE
private static final Identifier
SLOT_HIGHLIGHT_FRONT_SPRITE
field_54271
BUNDLE_SLOT_HIGHLIGHT_FRONT_TEXTURE
private static final Identifier
SLOT_BACKGROUND_SPRITE
field_54972
BUNDLE_SLOT_BACKGROUND_TEXTURE
private static final int
SLOT_MARGIN
field_52813
SLOTS_PER_ROW
private static final int
SLOT_SIZE
field_52814
SLOT_DIMENSION
private static final int
GRID_WIDTH
field_52815
ROW_WIDTH
private static final int
PROGRESSBAR_HEIGHT
field_52816
field_52816
private static final int
PROGRESSBAR_WIDTH
field_52817
field_52817
private static final int
PROGRESSBAR_BORDER
field_52818
field_52818
private static final int
PROGRESSBAR_FILL_MAX
field_52819
PROGRESS_BAR_WIDTH
private static final int
PROGRESSBAR_MARGIN_Y
field_52820
field_52820
private static final Text
BUNDLE_FULL_TEXT
field_52821
BUNDLE_FULL
private static final Text
BUNDLE_EMPTY_TEXT
field_52822
BUNDLE_EMPTY
private static final Text
BUNDLE_EMPTY_DESCRIPTION
field_52823
BUNDLE_EMPTY_DESCRIPTION
private final BundleContentsComponent
contents
field_49537
bundleContents

Constructor summary

ModifierConstructor
public (BundleContentsComponent bundleContents)

Method summary

Modifier and TypeMethod
public int
getHeight(Font font)
method_32661(class_327 arg0)
getHeight(TextRenderer arg0)
public int
getWidth(Font font)
method_32664(class_327 arg0)
getWidth(TextRenderer arg0)
public boolean
showTooltipWithItemInHand()
method_62003()
isSticky()
private static int
getEmptyBundleBackgroundHeight(Font font)
method_62016(class_327 arg0)
getHeightOfEmpty(TextRenderer textRenderer)
private int
backgroundHeight()
method_52756()
getHeightOfNonEmpty()
private int
itemGridHeight()
method_62015()
getRowsHeight()
private int
getContentXOffset(int tooltipWidth)
method_63508(int arg0)
getXMargin(int width)
private int
gridSizeY()
method_33290()
getRows()
private int
slotCount()
method_62019()
getNumVisibleSlots()
public void
renderImage(Font font, int x, int y, int w, int h, GuiGraphics graphics)
method_32666(class_327 arg0, int arg1, int arg2, int arg3, int arg4, class_332 arg5)
drawItems(TextRenderer arg0, int arg1, int arg2, int arg3, int arg4, DrawContext arg5)
private void
renderEmptyBundleTooltip(Font font, int x, int y, int w, int h, GuiGraphics graphics)
method_62014(class_327 arg0, int arg1, int arg2, int arg3, int arg4, class_332 arg5)
drawEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context)
private void
renderBundleWithItemsTooltip(Font font, int x, int y, int w, int h, GuiGraphics graphics)
method_62017(class_327 arg0, int arg1, int arg2, int arg3, int arg4, class_332 arg5)
drawNonEmptyTooltip(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context)
private List<ItemStack>
getShownItems(int amountOfItemsToShow)
method_62004(int arg0)
firstStacksInContents(int numberOfStacksShown)
private static boolean
shouldRenderSurplusText(boolean isOverflowing, int column, int row)
method_62012(boolean arg0, int arg1, int arg2)
shouldDrawExtraItemsCount(boolean hasMoreItems, int column, int row)
private static boolean
shouldRenderItemSlot(List<ItemStack> shownItems, int slotNumber)
method_62011(List<class_1799> arg0, int arg1)
shouldDrawItem(List<ItemStack> items, int itemIndex)
private int
getAmountOfHiddenItems(List<ItemStack> shownItems)
method_62010(List<class_1799> arg0)
numContentItemsAfter(List<ItemStack> items)
private void
renderSlot(int slotNumber, int drawX, int drawY, List<ItemStack> shownItems, int slotIndex, Font font, GuiGraphics graphics)
method_62006(int arg0, int arg1, int arg2, List<class_1799> arg3, int arg4, class_327 arg5, class_332 arg6)
drawItem(int index, int x, int y, List<ItemStack> stacks, int seed, TextRenderer textRenderer, DrawContext drawContext)
private static void
renderCount(int drawX, int drawY, int hiddenItemCount, Font font, GuiGraphics graphics)
method_62005(int arg0, int arg1, int arg2, class_327 arg3, class_332 arg4)
drawExtraItemsCount(int x, int y, int numExtra, TextRenderer textRenderer, DrawContext drawContext)
private void
drawSelectedItemTooltip(Font font, GuiGraphics graphics, int x, int y, int w)
method_62009(class_327 arg0, class_332 arg1, int arg2, int arg3, int arg4)
drawSelectedItemTooltip(TextRenderer textRenderer, DrawContext drawContext, int x, int y, int width)
private void
drawProgressbar(int x, int y, Font font, GuiGraphics graphics)
method_62007(int arg0, int arg1, class_327 arg2, class_332 arg3)
drawProgressBar(int x, int y, TextRenderer textRenderer, DrawContext drawContext)
private static void
drawEmptyBundleDescriptionText(int x, int y, Font font, GuiGraphics graphics)
method_62013(int arg0, int arg1, class_327 arg2, class_332 arg3)
drawEmptyDescription(int x, int y, TextRenderer textRenderer, DrawContext drawContext)
private static int
getEmptyBundleDescriptionTextHeight(Font font)
method_62018(class_327 arg0)
getDescriptionHeight(TextRenderer textRenderer)
private int
getProgressBarFill()
method_62020()
getProgressBarFill()
private Identifier
getProgressBarTexture()
method_63509()
getProgressBarFillTexture()
private Text
getProgressBarFillText()
method_62021()
getProgressBarLabel()