Record Class GlyphRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.GlyphRenderState
- All Implemented Interfaces:
GuiElementRenderState,ScreenArea
public record GlyphRenderState(Matrix3x2f pose, TextRenderable renderable, @Nullable ScreenRectangle scissorArea)
extends Record
implements GuiElementRenderState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Matrix3x2fThe field for theposerecord component.private final TextRenderableThe field for therenderablerecord component.private final ScreenRectangleThe field for thescissorArearecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlyphRenderState(Matrix3x2f pose, TextRenderable renderable, ScreenRectangle scissorArea) Creates an instance of aGlyphRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()voidbuildVertices(VertexConsumer p_415880_) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pipeline()pose()Returns the value of theposerecord component.Returns the value of therenderablerecord component.Returns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pose
The field for theposerecord component. -
renderable
The field for therenderablerecord component. -
scissorArea
The field for thescissorArearecord component.
-
-
Constructor Details
-
Method Details
-
buildVertices
- Specified by:
buildVerticesin interfaceGuiElementRenderState
-
pipeline
- Specified by:
pipelinein interfaceGuiElementRenderState
-
textureSetup
- Specified by:
textureSetupin interfaceGuiElementRenderState
-
bounds
- Specified by:
boundsin interfaceScreenArea
-
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). -
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
renderable
Returns the value of therenderablerecord component.- Returns:
- the value of the
renderablerecord component
-
scissorArea
Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfaceGuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-