Record Class GuiPaintCommand.Fill
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiPaintCommand.Fill
- All Implemented Interfaces:
GuiPaintCommand
- Enclosing interface:
GuiPaintCommand
public static record GuiPaintCommand.Fill(GuiRect bounds, RenderColor color)
extends Record
implements GuiPaintCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiPaintCommand
GuiPaintCommand.Box, GuiPaintCommand.Fill, GuiPaintCommand.Image -
Constructor Summary
ConstructorsConstructorDescriptionFill(GuiRect bounds, RenderColor color) Creates an instance of aFillrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord 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.
-
Constructor Details
-
Fill
Creates an instance of aFillrecord class.- Parameters:
bounds- the value for theboundsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-