Record Class GuiCaretStyle
java.lang.Object
java.lang.Record
com.render.api.gui.GuiCaretStyle
- Record Components:
shape- bar, block, or underscore geometrypaint- caret paintwidth- explicit block/underscore width, or zero for automaticthickness- bar or underscore thicknessvisible- whether the caret may paintanimation- reusable visibility animation
public record GuiCaretStyle(GuiCaretStyle.Shape shape, GuiTextPaint paint, float width, float thickness, boolean visible, GuiCaretAnimation animation)
extends Record
Immutable editable-text caret appearance.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiCaretStyle(GuiCaretStyle.Shape shape, GuiTextPaint paint, float width, float thickness, boolean visible, GuiCaretAnimation animation) Creates an instance of aGuiCaretStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationrecord component.animation(GuiCaretAnimation value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.paint()Returns the value of thepaintrecord component.paint(GuiTextPaint value) shape()Returns the value of theshaperecord component.shape(GuiCaretStyle.Shape value) floatReturns the value of thethicknessrecord component.thickness(float value) final StringtoString()Returns a string representation of this record class.booleanvisible()Returns the value of thevisiblerecord component.visible(boolean value) floatwidth()Returns the value of thewidthrecord component.width(float value)
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
GuiCaretStyle
public GuiCaretStyle(GuiCaretStyle.Shape shape, GuiTextPaint paint, float width, float thickness, boolean visible, GuiCaretAnimation animation) Creates an instance of aGuiCaretStylerecord class.- Parameters:
shape- the value for theshaperecord componentpaint- the value for thepaintrecord componentwidth- the value for thewidthrecord componentthickness- the value for thethicknessrecord componentvisible- the value for thevisiblerecord componentanimation- the value for theanimationrecord component
-
-
Method Details
-
shape
-
paint
-
width
-
thickness
-
animation
-
visible
-
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. -
shape
-
paint
-
width
-
thickness
-
visible
-
animation
-