Record Class GlyphPositions.Avatar
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.resource.dialog.GlyphPositions.Avatar
- Enclosing class:
GlyphPositions
public static record GlyphPositions.Avatar(int x, int y, int height, int frameHeight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAvatar(int x, int y, int height, int frameHeight) Creates an instance of aAvatarrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intintReturns the value of theframeHeightrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
Avatar
public Avatar(int x, int y, int height, int frameHeight) Creates an instance of aAvatarrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentheight- the value for theheightrecord componentframeHeight- the value for theframeHeightrecord component
-
-
Method Details
-
frameBorderSize
public int frameBorderSize() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
frameHeight
public int frameHeight()Returns the value of theframeHeightrecord component.- Returns:
- the value of the
frameHeightrecord component
-