Record Class GuiGeneratedContent.Image
java.lang.Object
java.lang.Record
com.render.api.gui.GuiGeneratedContent.Image
- All Implemented Interfaces:
GuiGeneratedContent.Part
- Enclosing class:
GuiGeneratedContent
public static record GuiGeneratedContent.Image(GuiImage value, float width, float height)
extends Record
implements GuiGeneratedContent.Part
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.floatwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Image
Creates an instance of aImagerecord class.- Parameters:
value- the value for thevaluerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord 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. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public float height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-