Record Class GuiPageMargins
java.lang.Object
java.lang.Record
com.render.api.gui.pagination.GuiPageMargins
- Record Components:
top- top marginright- right marginbottom- bottom marginleft- left margin
Immutable page content insets.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiPageMargins(float top, float right, float bottom, float left) Creates an instance of aGuiPageMarginsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatfloatleft()Returns the value of theleftrecord component.floatright()Returns the value of therightrecord component.floattop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.static GuiPageMarginsuniform(float value) floatvertical()
-
Field Details
-
ZERO
-
-
Constructor Details
-
GuiPageMargins
public GuiPageMargins(float top, float right, float bottom, float left) Creates an instance of aGuiPageMarginsrecord class.
-
-
Method Details
-
uniform
-
horizontal
public float horizontal() -
vertical
public float vertical() -
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. -
top
-
right
-
bottom
-
left
-