Record Class GuiTextDecoration
java.lang.Object
java.lang.Record
com.render.api.gui.GuiTextDecoration
- Record Components:
lines- decorated line positionsstyle- solid, double, dotted, dashed, or wavy geometrypaint- decoration paintthickness- explicit thickness, orFloat.NaNfor automaticoffset- baseline-relative offset in logical pixelsskipInk- whether the line should avoid glyph coverage
public record GuiTextDecoration(Set<GuiTextDecoration.Line> lines, GuiTextDecoration.Style style, GuiTextPaint paint, float thickness, float offset, boolean skipInk)
extends Record
CSS-style underline, overline, and line-through configuration.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionGuiTextDecoration(Set<GuiTextDecoration.Line> lines, GuiTextDecoration.Style style, GuiTextPaint paint, float thickness, float offset, boolean skipInk) Creates an instance of aGuiTextDecorationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lines()Returns the value of thelinesrecord component.floatoffset()Returns the value of theoffsetrecord component.paint()Returns the value of thepaintrecord component.booleanskipInk()Returns the value of theskipInkrecord component.style()Returns the value of thestylerecord component.floatReturns the value of thethicknessrecord component.final StringtoString()Returns a string representation of this record class.static GuiTextDecorationunderline(GuiTextPaint paint)
-
Constructor Details
-
GuiTextDecoration
public GuiTextDecoration(Set<GuiTextDecoration.Line> lines, GuiTextDecoration.Style style, GuiTextPaint paint, float thickness, float offset, boolean skipInk) Creates an instance of aGuiTextDecorationrecord class.- Parameters:
lines- the value for thelinesrecord componentstyle- the value for thestylerecord componentpaint- the value for thepaintrecord componentthickness- the value for thethicknessrecord componentoffset- the value for theoffsetrecord componentskipInk- the value for theskipInkrecord component
-
-
Method Details
-
underline
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
lines
-
style
-
paint
-
thickness
-
offset
-
skipInk
-