Record Class GuiPaintCommand.Box
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiPaintCommand.Box
- All Implemented Interfaces:
GuiPaintCommand
- Enclosing interface:
GuiPaintCommand
public static record GuiPaintCommand.Box(GuiRect bounds, RenderColor color, float cornerRadius)
extends Record
implements GuiPaintCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiPaintCommand
GuiPaintCommand.Box, GuiPaintCommand.Fill, GuiPaintCommand.Image -
Constructor Summary
ConstructorsConstructorDescriptionBox(GuiRect bounds, RenderColor color, float cornerRadius) Creates an instance of aBoxrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.color()Returns the value of thecolorrecord component.floatReturns the value of thecornerRadiusrecord 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.
-
Constructor Details
-
Box
Creates an instance of aBoxrecord class.- Parameters:
bounds- the value for theboundsrecord componentcolor- the value for thecolorrecord componentcornerRadius- the value for thecornerRadiusrecord 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. -
bounds
Returns the value of theboundsrecord component.- Returns:
- the value of the
boundsrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
cornerRadius
public float cornerRadius()Returns the value of thecornerRadiusrecord component.- Returns:
- the value of the
cornerRadiusrecord component
-