Record Class GuiAspectRatio
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiAspectRatio
- Record Components:
width- positive ratio width, or zero for automaticheight- positive ratio height, or zero for automatic
Preferred box aspect ratio.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiAspectRatio(float width, float height) Creates an instance of aGuiAspectRatiorecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal 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.static GuiAspectRatioof(float width, float height) final StringtoString()Returns a string representation of this record class.floatvalue()floatwidth()Returns the value of thewidthrecord component.
-
Field Details
-
AUTO
-
-
Constructor Details
-
GuiAspectRatio
-
-
Method Details
-
of
-
automatic
public boolean automatic() -
value
public float value() -
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 with thecomparemethod from their corresponding wrapper classes. -
width
-
height
-