Class HelpClientTooltipComponent
java.lang.Object
com.refinedmods.refinedstorage.common.support.tooltip.HelpClientTooltipComponent
- All Implemented Interfaces:
net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
public class HelpClientTooltipComponent
extends Object
implements net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
create
(net.minecraft.network.chat.Component text) static net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
createAlwaysDisplayed
(net.minecraft.network.chat.Component text) int
int
getWidth
(net.minecraft.client.gui.Font font) void
renderImage
(net.minecraft.client.gui.Font font, int x, int y, net.minecraft.client.gui.GuiGraphics graphics) void
renderText
(net.minecraft.client.gui.Font font, int x, int y, org.joml.Matrix4f pose, net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer)
-
Method Details
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
getWidth
public int getWidth(net.minecraft.client.gui.Font font) - Specified by:
getWidth
in interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
renderText
public void renderText(net.minecraft.client.gui.Font font, int x, int y, org.joml.Matrix4f pose, net.minecraft.client.renderer.MultiBufferSource.BufferSource buffer) - Specified by:
renderText
in interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
renderImage
public void renderImage(net.minecraft.client.gui.Font font, int x, int y, net.minecraft.client.gui.GuiGraphics graphics) - Specified by:
renderImage
in interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
create
public static net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent create(net.minecraft.network.chat.Component text) -
createAlwaysDisplayed
public static net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent createAlwaysDisplayed(net.minecraft.network.chat.Component text)
-