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
-
Field Summary
Fields Modifier and Type Field Description private booleanhasSpaceprivate DefaultedList<ItemStack>inventory -
Constructor Summary
Constructors Constructor Description BundleTooltipComponent(BundleTooltipData bundleTooltipData) -
Method Summary
Modifier and Type Method Description voiddrawItems(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)private voiddrawSlot(MatrixStack matrices, int x, int y, int z, TextureManager textureManager, boolean plusSlot)private intgetDisplayColumns()intgetHeight()private intgetStackCount()intgetWidth(TextRenderer textRenderer)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
-
inventory
-
hasSpace
private final boolean hasSpace
-
-
Constructor Details
-
BundleTooltipComponent
-
-
Method Details
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceTooltipComponent
-
getWidth
- Specified by:
getWidthin interfaceTooltipComponent
-
getStackCount
private int getStackCount() -
drawItems
public void drawItems(TextRenderer textRenderer, int x, int y, MatrixStack matrices, ItemRenderer itemRenderer, int z, TextureManager textureManager)- Specified by:
drawItemsin interfaceTooltipComponent
-
drawSlot
private void drawSlot(MatrixStack matrices, int x, int y, int z, TextureManager textureManager, boolean plusSlot) -
getDisplayColumns
private int getDisplayColumns()
-