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

    Constructors
    Constructor
    Description
    GlyphPlacement(float offX, float offY, float scale, float rotation, float perceivedScale, float alpha)
    Creates an instance of a GlyphPlacement record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the alpha record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the offX record component.
    float
    Returns the value of the offY record component.
    float
    Returns the value of the perceivedScale record component.
    float
    Returns the value of the rotation record component.
    float
    Returns the value of the scale record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GlyphPlacement

      public GlyphPlacement(float offX, float offY, float scale, float rotation, float perceivedScale, float alpha)
      Creates an instance of a GlyphPlacement record class.
      Parameters:
      offX - the value for the offX record component
      offY - the value for the offY record component
      scale - the value for the scale record component
      rotation - the value for the rotation record component
      perceivedScale - the value for the perceivedScale record component
      alpha - the value for the alpha record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • offX

      public float offX()
      Returns the value of the offX record component.
      Returns:
      the value of the offX record component
    • offY

      public float offY()
      Returns the value of the offY record component.
      Returns:
      the value of the offY record component
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • rotation

      public float rotation()
      Returns the value of the rotation record component.
      Returns:
      the value of the rotation record component
    • perceivedScale

      public float perceivedScale()
      Returns the value of the perceivedScale record component.
      Returns:
      the value of the perceivedScale record component
    • alpha

      public float alpha()
      Returns the value of the alpha record component.
      Returns:
      the value of the alpha record component