Record Class GuiTransform.Skew
java.lang.Object
java.lang.Record
com.render.api.gui.effects.GuiTransform.Skew
- All Implemented Interfaces:
GuiTransform.Operation
- Enclosing class:
GuiTransform
public static record GuiTransform.Skew(float xDegrees, float yDegrees)
extends Record
implements GuiTransform.Operation
-
Constructor Summary
ConstructorsConstructorDescriptionSkew(float xDegrees, float yDegrees) Creates an instance of aSkewrecord 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.final StringtoString()Returns a string representation of this record class.floatxDegrees()Returns the value of thexDegreesrecord component.floatyDegrees()Returns the value of theyDegreesrecord component.
-
Constructor Details
-
Skew
public Skew(float xDegrees, float yDegrees) Creates an instance of aSkewrecord class.- Parameters:
xDegrees- the value for thexDegreesrecord componentyDegrees- the value for theyDegreesrecord component
-
-
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. -
xDegrees
public float xDegrees()Returns the value of thexDegreesrecord component.- Returns:
- the value of the
xDegreesrecord component
-
yDegrees
public float yDegrees()Returns the value of theyDegreesrecord component.- Returns:
- the value of the
yDegreesrecord component
-