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.GlyphInstance
The field for theinstance
record component.private final org.joml.Matrix3x2f
The field for thepose
record component.private final ScreenRectangle
The field for thescissorArea
record component. -
Constructor Summary
ConstructorsConstructorDescriptionGlyphRenderState
(org.joml.Matrix3x2f pose, BakedGlyph.GlyphInstance instance, ScreenRectangle scissorArea) Creates an instance of aGlyphRenderState
record class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()
void
buildVertices
(VertexConsumer p_415880_, float p_418251_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.instance()
Returns the value of theinstance
record component.pipeline()
org.joml.Matrix3x2f
pose()
Returns the value of thepose
record component.Returns the value of thescissorArea
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
pose
private final org.joml.Matrix3x2f poseThe field for thepose
record component. -
instance
The field for theinstance
record component. -
scissorArea
The field for thescissorArea
record component.
-
-
Constructor Details
-
Method Details
-
buildVertices
- Specified by:
buildVertices
in interfaceGuiElementRenderState
-
pipeline
- Specified by:
pipeline
in interfaceGuiElementRenderState
-
textureSetup
- Specified by:
textureSetup
in interfaceGuiElementRenderState
-
bounds
- Specified by:
bounds
in 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 thepose
record component.- Returns:
- the value of the
pose
record component
-
instance
Returns the value of theinstance
record component.- Returns:
- the value of the
instance
record component
-
scissorArea
Returns the value of thescissorArea
record component.- Specified by:
scissorArea
in interfaceGuiElementRenderState
- Returns:
- the value of the
scissorArea
record component
-