Record Class GuiTransformOrigin
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransformOrigin
- Record Components:
x- normalized horizontal origin, where0is left and1is righty- normalized vertical origin, where0is top and1is bottomz- design-space Z offset
Transform origin expressed as normalized border-box coordinates plus a
design-space Z offset.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGuiTransformOrigin(float x, float y, float z) Creates an instance of aGuiTransformOriginrecord 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.static GuiTransformOriginpercent(float xPercent, float yPercent) final StringtoString()Returns a string representation of this record class.floatx()Returns the value of thexrecord component.floaty()Returns the value of theyrecord component.floatz()Returns the value of thezrecord component.
-
Field Details
-
CENTER
-
TOP_LEFT
-
-
Constructor Details
-
GuiTransformOrigin
-
-
Method Details
-
percent
-
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. -
x
-
y
-
z
-