Class ClientBundleTooltip
java.lang.Object
net.minecraft.client.gui.screens.inventory.tooltip.ClientBundleTooltip
- All Implemented Interfaces:
ClientTooltipComponent
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceLocationprivate static final intprivate final BundleContentsprivate static final intprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intprivate intprivate voidblit(GuiGraphics pGuiGraphics, int pX, int pY, ClientBundleTooltip.Texture pTexture) intintprivate intprivate intvoidrenderImage(Font pFont, int pX, int pY, GuiGraphics pGuiGraphics) private voidrenderSlot(int pX, int pY, int pItemIndex, boolean pIsBundleFull, GuiGraphics pGuiGraphics, Font pFont) 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.screens.inventory.tooltip.ClientTooltipComponent
renderText
-
Field Details
-
BACKGROUND_SPRITE
-
MARGIN_Y
private static final int MARGIN_Y- See Also:
-
BORDER_WIDTH
private static final int BORDER_WIDTH- See Also:
-
SLOT_SIZE_X
private static final int SLOT_SIZE_X- See Also:
-
SLOT_SIZE_Y
private static final int SLOT_SIZE_Y- See Also:
-
contents
-
-
Constructor Details
-
ClientBundleTooltip
-
-
Method Details
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceClientTooltipComponent
-
getWidth
- Specified by:
getWidthin interfaceClientTooltipComponent
-
backgroundWidth
private int backgroundWidth() -
backgroundHeight
private int backgroundHeight() -
renderImage
- Specified by:
renderImagein interfaceClientTooltipComponent
-
renderSlot
private void renderSlot(int pX, int pY, int pItemIndex, boolean pIsBundleFull, GuiGraphics pGuiGraphics, Font pFont) -
blit
-
gridSizeX
private int gridSizeX() -
gridSizeY
private int gridSizeY()
-