Record Class PortableCellWorkbenchClientTooltipComponent
java.lang.Object
java.lang.Record
gripe._90.megacells.client.render.PortableCellWorkbenchClientTooltipComponent
- All Implemented Interfaces:
net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
public record PortableCellWorkbenchClientTooltipComponent(PortableCellWorkbenchTooltipComponent tooltipComponent)
extends Record
implements net.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aPortableCellWorkbenchClientTooltipComponentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intintgetWidth(@NotNull net.minecraft.client.gui.Font font) final inthashCode()Returns a hash code value for this object.voidrenderImage(@NotNull net.minecraft.client.gui.Font font, int x, int y, @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics) voidrenderText(@NotNull net.minecraft.client.gui.Font font, int x, int y, @NotNull org.joml.Matrix4f matrix, net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource) Returns the value of thetooltipComponentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PortableCellWorkbenchClientTooltipComponent
public PortableCellWorkbenchClientTooltipComponent(PortableCellWorkbenchTooltipComponent tooltipComponent) Creates an instance of aPortableCellWorkbenchClientTooltipComponentrecord class.- Parameters:
tooltipComponent- the value for thetooltipComponentrecord component
-
-
Method Details
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
getWidth
public int getWidth(@NotNull @NotNull net.minecraft.client.gui.Font font) - Specified by:
getWidthin interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
renderText
public void renderText(@NotNull @NotNull net.minecraft.client.gui.Font font, int x, int y, @NotNull @NotNull org.joml.Matrix4f matrix, @NotNull net.minecraft.client.renderer.MultiBufferSource.BufferSource bufferSource) - Specified by:
renderTextin interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
renderImage
public void renderImage(@NotNull @NotNull net.minecraft.client.gui.Font font, int x, int y, @NotNull @NotNull net.minecraft.client.gui.GuiGraphics guiGraphics) - Specified by:
renderImagein interfacenet.minecraft.client.gui.screens.inventory.tooltip.ClientTooltipComponent
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
tooltipComponent
Returns the value of thetooltipComponentrecord component.- Returns:
- the value of the
tooltipComponentrecord component
-