Record Class GuiBackgroundSize
java.lang.Object
java.lang.Record
com.render.api.gui.paint.GuiBackgroundSize
- Record Components:
mode- sizing modewidth- width relative to the positioning box forGuiBackgroundSize.Mode.EXPLICITheight- height relative to the positioning box forGuiBackgroundSize.Mode.EXPLICIT
public record GuiBackgroundSize(GuiBackgroundSize.Mode mode, float width, float height)
extends Record
Background image sizing policy.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionGuiBackgroundSize(GuiBackgroundSize.Mode mode, float width, float height) Creates an instance of aGuiBackgroundSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GuiBackgroundSizeauto()static GuiBackgroundSizecontain()static GuiBackgroundSizecover()final 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.mode()Returns the value of themoderecord component.static GuiBackgroundSizerelative(float width, float height) final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Method Details
-
auto
-
contain
-
cover
-
relative
-
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. -
mode
-
width
-
height
-