Record Class GuiFilter.DropShadow
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiFilter.DropShadow
- All Implemented Interfaces:
GuiFilter
- Enclosing interface:
GuiFilter
public static record GuiFilter.DropShadow(float x, float y, float blur, RenderColor color)
extends Record
implements GuiFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiFilter
GuiFilter.Blur, GuiFilter.Brightness, GuiFilter.Contrast, GuiFilter.DropShadow, GuiFilter.Grayscale, GuiFilter.HueRotate, GuiFilter.Invert, GuiFilter.Opacity, GuiFilter.Saturate, GuiFilter.Sepia -
Constructor Summary
ConstructorsConstructorDescriptionDropShadow(float x, float y, float blur, RenderColor color) Creates an instance of aDropShadowrecord 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.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
DropShadow
Creates an instance of aDropShadowrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentblur- the value for theblurrecord componentcolor- the value for thecolorrecord component
-
-
Method Details
-
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. -
x
public float x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
blur
public float blur()Returns the value of theblurrecord component.- Returns:
- the value of the
blurrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-