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