Record Class GuiTextShadow
java.lang.Object
java.lang.Record
com.render.api.gui.GuiTextShadow
- Record Components:
offsetX- horizontal offset in logical pixelsoffsetY- vertical offset in logical pixelsblur- blur radius in logical pixelsspread- edge spread in logical pixelspaint- shadow paint
public record GuiTextShadow(float offsetX, float offsetY, float blur, float spread, GuiTextPaint paint)
extends Record
One ordered outer shadow layer.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiTextShadow(float offsetX, float offsetY, float blur, float spread, GuiTextPaint paint) Creates an instance of aGuiTextShadowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatblur()Returns the value of theblurrecord component.final booleanIndicates whether some other object is "equal to" this one.static GuiTextShadowglow(float blur, float spread, RenderColor color) final inthashCode()Returns a hash code value for this object.static GuiTextShadowof(float offsetX, float offsetY, float blur, RenderColor color) floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.paint()Returns the value of thepaintrecord component.floatspread()Returns the value of thespreadrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiTextShadow
Creates an instance of aGuiTextShadowrecord class.
-
-
Method Details
-
of
-
glow
-
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. -
offsetX
-
offsetY
-
blur
-
spread
-
paint
-