Record Class Strategy.GlyphPlacement
java.lang.Object
java.lang.Record
cromveil.combatnumbers.client.render.Strategy.GlyphPlacement
- Enclosing interface:
Strategy
public static record Strategy.GlyphPlacement(float offX, float offY, float scale, float rotation, float perceivedScale, float alpha)
extends Record
Resolved per-glyph placement produced by the shared driver.
-
Constructor Summary
ConstructorsConstructorDescriptionGlyphPlacement(float offX, float offY, float scale, float rotation, float perceivedScale, float alpha) Creates an instance of aGlyphPlacementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatalpha()Returns the value of thealpharecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatoffX()Returns the value of theoffXrecord component.floatoffY()Returns the value of theoffYrecord component.floatReturns the value of theperceivedScalerecord component.floatrotation()Returns the value of therotationrecord component.floatscale()Returns the value of thescalerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GlyphPlacement
public GlyphPlacement(float offX, float offY, float scale, float rotation, float perceivedScale, float alpha) Creates an instance of aGlyphPlacementrecord class.- Parameters:
offX- the value for theoffXrecord componentoffY- the value for theoffYrecord componentscale- the value for thescalerecord componentrotation- the value for therotationrecord componentperceivedScale- the value for theperceivedScalerecord componentalpha- the value for thealpharecord 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. -
offX
public float offX()Returns the value of theoffXrecord component.- Returns:
- the value of the
offXrecord component
-
offY
public float offY()Returns the value of theoffYrecord component.- Returns:
- the value of the
offYrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
rotation
public float rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
perceivedScale
public float perceivedScale()Returns the value of theperceivedScalerecord component.- Returns:
- the value of the
perceivedScalerecord component
-
alpha
public float alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-