Record Class GuiBoxShadow
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiBoxShadow
- Record Components:
offsetX- horizontal offsetoffsetY- vertical offsetblur- blur radiusspread- spread distancecolor- shadow colorinset- whether the shadow is painted inside the padding edge
public record GuiBoxShadow(float offsetX, float offsetY, float blur, float spread, RenderColor color, boolean inset)
extends Record
Immutable ordered box shadow supporting outer and inset placement.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiBoxShadow(float offsetX, float offsetY, float blur, float spread, RenderColor color, boolean inset) Creates an instance of aGuiBoxShadowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatblur()Returns the value of theblurrecord component.color()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.static GuiBoxShadowfromLegacy(GuiShadow shadow) final inthashCode()Returns a hash code value for this object.booleaninset()Returns the value of theinsetrecord component.static GuiBoxShadowinset(float x, float y, float blur, float spread, RenderColor color) floatoffsetX()Returns the value of theoffsetXrecord component.floatoffsetY()Returns the value of theoffsetYrecord component.static GuiBoxShadowouter(float x, float y, float blur, float spread, RenderColor color) floatspread()Returns the value of thespreadrecord component.toLegacy()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiBoxShadow
public GuiBoxShadow(float offsetX, float offsetY, float blur, float spread, RenderColor color, boolean inset) Creates an instance of aGuiBoxShadowrecord class.- Parameters:
offsetX- the value for theoffsetXrecord componentoffsetY- the value for theoffsetYrecord componentblur- the value for theblurrecord componentspread- the value for thespreadrecord componentcolor- the value for thecolorrecord componentinset- the value for theinsetrecord component
-
-
Method Details
-
outer
-
inset
-
fromLegacy
-
toLegacy
-
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
-
color
-
inset
-