Record Class GuiLength.Calculation
java.lang.Object
java.lang.Record
com.render.api.gui.layout.GuiLength.Calculation
- Record Components:
pixels- pixel termpercent- percentage-point term
- All Implemented Interfaces:
GuiLength
- Enclosing interface:
GuiLength
-
Nested Class Summary
Nested classes/interfaces inherited from interface GuiLength
GuiLength.Calculation, GuiLength.FitContent, GuiLength.Fraction, GuiLength.Keyword, GuiLength.Percentage, GuiLength.Pixels -
Constructor Summary
ConstructorsConstructorDescriptionCalculation(float pixels, float percent) Creates an instance of aCalculationrecord class. -
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.floatpercent()Returns the value of thepercentrecord component.floatpixels()Returns the value of thepixelsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Calculation
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
pixels
-
percent
-