Record Class TextRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.TextRenderState
- Record Components:
drawShadow-color-backgroundColor-mode-packedLightCoords-glyphInstances-effects-lineHeight-whiteGlyph-endX-
@Environment(CLIENT)
public record TextRenderState(boolean drawShadow, int color, int backgroundColor, TextRenderer.TextLayerType mode, int packedLightCoords, List<BakedGlyph.DrawnGlyph> glyphInstances, @Nullable List<BakedGlyph.Rectangle> effects, int lineHeight, BakedGlyph whiteGlyph, float endX)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/render/state/TextRenderStateintermediary net/minecraft/class_11248official fzvnamed drawShadowintermediary comp_4109official anamed colorintermediary comp_4110official bnamed backgroundColorintermediary comp_4111official cnamed modeintermediary comp_4112official dnamed packedLightCoordsintermediary comp_4113official enamed glyphInstancesintermediary comp_4114official fnamed effectsintermediary comp_4115official gnamed lineHeightintermediary comp_4116official hnamed whiteGlyphintermediary comp_4117official inamed endXintermediary comp_4118official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thebackgroundColorrecord component.private final intThe field for thecolorrecord component.private final booleanThe field for thedrawShadowrecord component.private final @Nullable List<BakedGlyph.Rectangle> The field for theeffectsrecord component.private final floatThe field for theendXrecord component.private final List<BakedGlyph.DrawnGlyph> The field for theglyphInstancesrecord component.private final intThe field for thelineHeightrecord component.private final TextRenderer.TextLayerTypeThe field for themoderecord component.private final intThe field for thepackedLightCoordsrecord component.private final BakedGlyphThe field for thewhiteGlyphrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextRenderState(boolean bool, int int2, int int3, TextRenderer.TextLayerType textLayerType, int int4, List<BakedGlyph.DrawnGlyph> list, @Nullable List<BakedGlyph.Rectangle> list2, int int5, BakedGlyph bakedGlyph, float float2) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebackgroundColorrecord component.intcolor()Returns the value of thecolorrecord component.booleanReturns the value of thedrawShadowrecord component.effects()Returns the value of theeffectsrecord component.floatendX()Returns the value of theendXrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theglyphInstancesrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelineHeightrecord component.mode()Returns the value of themoderecord component.intReturns the value of thepackedLightCoordsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewhiteGlyphrecord component.
-
Field Details
-
drawShadow
private final boolean drawShadowThe field for thedrawShadowrecord component. -
color
private final int colorThe field for thecolorrecord component. -
backgroundColor
private final int backgroundColorThe field for thebackgroundColorrecord component. -
mode
The field for themoderecord component. -
packedLightCoords
private final int packedLightCoordsThe field for thepackedLightCoordsrecord component. -
glyphInstances
The field for theglyphInstancesrecord component. -
effects
The field for theeffectsrecord component. -
lineHeight
private final int lineHeightThe field for thelineHeightrecord component. -
whiteGlyph
The field for thewhiteGlyphrecord component. -
endX
private final float endXThe field for theendXrecord component.
-
-
Constructor Details
-
TextRenderState
public TextRenderState(boolean bool, int int2, int int3, TextRenderer.TextLayerType textLayerType, int int4, List<BakedGlyph.DrawnGlyph> list, @Nullable @Nullable List<BakedGlyph.Rectangle> list2, int int5, BakedGlyph bakedGlyph, float float2)
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
drawShadow
public boolean drawShadow()Returns the value of thedrawShadowrecord component.- Returns:
- the value of the
drawShadowrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
backgroundColor
public int backgroundColor()Returns the value of thebackgroundColorrecord component.- Returns:
- the value of the
backgroundColorrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
packedLightCoords
public int packedLightCoords()Returns the value of thepackedLightCoordsrecord component.- Returns:
- the value of the
packedLightCoordsrecord component
-
glyphInstances
Returns the value of theglyphInstancesrecord component.- Returns:
- the value of the
glyphInstancesrecord component
-
effects
Returns the value of theeffectsrecord component.- Returns:
- the value of the
effectsrecord component
-
lineHeight
public int lineHeight()Returns the value of thelineHeightrecord component.- Returns:
- the value of the
lineHeightrecord component
-
whiteGlyph
Returns the value of thewhiteGlyphrecord component.- Returns:
- the value of the
whiteGlyphrecord component
-
endX
public float endX()Returns the value of theendXrecord component.- Returns:
- the value of the
endXrecord component
-