Record Class GlyphEffectRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.GlyphEffectRenderState
- All Implemented Interfaces:
GuiElementRenderState,ScreenArea
public record GlyphEffectRenderState(Matrix3x2f pose, BakedGlyph whiteGlyph, BakedGlyph.Effect effect, @Nullable ScreenRectangle scissorArea)
extends Record
implements GuiElementRenderState
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BakedGlyph.EffectThe field for theeffectrecord component.private final Matrix3x2fThe field for theposerecord component.private final ScreenRectangleThe field for thescissorArearecord component.private final BakedGlyphThe field for thewhiteGlyphrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlyphEffectRenderState(Matrix3x2f pose, BakedGlyph whiteGlyph, BakedGlyph.Effect effect, ScreenRectangle scissorArea) Creates an instance of aGlyphEffectRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()voidbuildVertices(VertexConsumer p_425740_, float p_425813_) effect()Returns the value of theeffectrecord component.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 thescissorArearecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhiteGlyphrecord component.
-
Field Details
-
pose
The field for theposerecord component. -
whiteGlyph
The field for thewhiteGlyphrecord component. -
effect
The field for theeffectrecord 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
-
whiteGlyph
Returns the value of thewhiteGlyphrecord component.- Returns:
- the value of the
whiteGlyphrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
scissorArea
Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfaceGuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-