Package net.minecraft.client.gui.tooltip
Class BundleTooltipComponent
java.lang.Object
net.minecraft.client.gui.tooltip.BundleTooltipComponent
- All Implemented Interfaces:
TooltipComponent
@Environment(CLIENT) public class BundleTooltipComponent extends Object implements TooltipComponent
- Mappings:
Namespace Name official dzg
intermediary net/minecraft/class_5682
named net/minecraft/client/gui/tooltip/BundleTooltipComponent
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
BundleTooltipComponent.Sprite
-
Field Summary
Fields Modifier and Type Field Description private DefaultedList<ItemStack>
inventory
private int
occupancy
static Identifier
TEXTURE
-
Constructor Summary
Constructors Constructor Description BundleTooltipComponent(BundleTooltipData data)
-
Method Summary
Modifier and Type Method Description private void
draw(MatrixStack matrices, int x, int y, int z, TextureManager textureManager, BundleTooltipComponent.Sprite sprite)
void
drawItems(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)
private void
drawOutline(int x, int y, int columns, int rows, MatrixStack matrices, int z, TextureManager textureManager)
private void
drawSlot(int x, int y, int index, boolean shouldBlock, TextRenderer textRenderer, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)
private int
getColumns()
int
getHeight()
private int
getRows()
int
getWidth(TextRenderer textRenderer)
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
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Ldzg;a:Lwl;
intermediary field_28359
Lnet/minecraft/class_5682;field_28359:Lnet/minecraft/class_2960;
named TEXTURE
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;TEXTURE:Lnet/minecraft/util/Identifier;
-
inventory
- Mappings:
Namespace Name Mixin selector official b
Ldzg;b:Lgj;
intermediary field_27995
Lnet/minecraft/class_5682;field_27995:Lnet/minecraft/class_2371;
named inventory
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
occupancy
private final int occupancy- Mappings:
Namespace Name Mixin selector official c
Ldzg;c:I
intermediary field_28360
Lnet/minecraft/class_5682;field_28360:I
named occupancy
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;occupancy:I
-
-
Constructor Details
-
BundleTooltipComponent
- Mappings:
Namespace Name Mixin selector official <init>
Ldzg;<init>(Lbmi;)V
intermediary <init>
Lnet/minecraft/class_5682;<init>(Lnet/minecraft/class_5631;)V
named <init>
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;<init>(Lnet/minecraft/client/item/BundleTooltipData;)V
-
-
Method Details
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector official a
Ldzi;a()I
intermediary method_32661
Lnet/minecraft/class_5684;method_32661()I
named getHeight
Lnet/minecraft/client/gui/tooltip/TooltipComponent;getHeight()I
-
getWidth
- Specified by:
getWidth
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector official a
Ldzi;a(Ldsz;)I
intermediary method_32664
Lnet/minecraft/class_5684;method_32664(Lnet/minecraft/class_327;)I
named getWidth
Lnet/minecraft/client/gui/tooltip/TooltipComponent;getWidth(Lnet/minecraft/client/font/TextRenderer;)I
-
drawItems
public void drawItems(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)- Specified by:
drawItems
in interfaceTooltipComponent
- Mappings:
Namespace Name Mixin selector official a
Ldzi;a(Ldsz;IILdnl;Leoz;ILetp;)V
intermediary method_32666
Lnet/minecraft/class_5684;method_32666(Lnet/minecraft/class_327;IILnet/minecraft/class_4587;Lnet/minecraft/class_918;ILnet/minecraft/class_1060;)V
named drawItems
Lnet/minecraft/client/gui/tooltip/TooltipComponent;drawItems(Lnet/minecraft/client/font/TextRenderer;IILnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/item/ItemRenderer;ILnet/minecraft/client/texture/TextureManager;)V
-
drawSlot
private void drawSlot(int x, int y, int index, boolean shouldBlock, TextRenderer textRenderer, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)- Mappings:
Namespace Name Mixin selector official a
Ldzg;a(IIIZLdsz;Ldnl;Leoz;ILetp;)V
intermediary method_33287
Lnet/minecraft/class_5682;method_33287(IIIZLnet/minecraft/class_327;Lnet/minecraft/class_4587;Lnet/minecraft/class_918;ILnet/minecraft/class_1060;)V
named drawSlot
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawSlot(IIIZLnet/minecraft/client/font/TextRenderer;Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/item/ItemRenderer;ILnet/minecraft/client/texture/TextureManager;)V
-
drawOutline
private void drawOutline(int x, int y, int columns, int rows, MatrixStack matrices, int z, TextureManager textureManager)- Mappings:
Namespace Name Mixin selector official a
Ldzg;a(IIIILdnl;ILetp;)V
intermediary method_33286
Lnet/minecraft/class_5682;method_33286(IIIILnet/minecraft/class_4587;ILnet/minecraft/class_1060;)V
named drawOutline
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;drawOutline(IIIILnet/minecraft/client/util/math/MatrixStack;ILnet/minecraft/client/texture/TextureManager;)V
-
draw
private void draw(MatrixStack matrices, int x, int y, int z, TextureManager textureManager, BundleTooltipComponent.Sprite sprite)- Mappings:
Namespace Name Mixin selector official a
Ldzg;a(Ldnl;IIILetp;Ldzg$a;)V
intermediary method_33288
Lnet/minecraft/class_5682;method_33288(Lnet/minecraft/class_4587;IIILnet/minecraft/class_1060;Lnet/minecraft/class_5682$class_5771;)V
named draw
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;draw(Lnet/minecraft/client/util/math/MatrixStack;IIILnet/minecraft/client/texture/TextureManager;Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent$Sprite;)V
-
getColumns
private int getColumns()- Mappings:
Namespace Name Mixin selector official b
Ldzg;b()I
intermediary method_33289
Lnet/minecraft/class_5682;method_33289()I
named getColumns
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getColumns()I
-
getRows
private int getRows()- Mappings:
Namespace Name Mixin selector official c
Ldzg;c()I
intermediary method_33290
Lnet/minecraft/class_5682;method_33290()I
named getRows
Lnet/minecraft/client/gui/tooltip/BundleTooltipComponent;getRows()I
-