Record Class GuiPaintCommand.Image
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiPaintCommand.Image
- All Implemented Interfaces:
GuiPaintCommand
- Enclosing interface:
GuiPaintCommand
public static record GuiPaintCommand.Image(GuiRect bounds, GuiImage image, float opacity)
extends Record
implements GuiPaintCommand
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiPaintCommand
GuiPaintCommand.Box, GuiPaintCommand.Fill, GuiPaintCommand.Image -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.floatopacity()Returns the value of theopacityrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Image
-
-
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
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
opacity
public float opacity()Returns the value of theopacityrecord component.- Returns:
- the value of the
opacityrecord component
-