Record Class BBKeyframe

java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.common.model.blockbench.animation.BBKeyframe

public record BBKeyframe(String uuid, String channel, float time, int color, BBEasing interpolation, boolean uniform, org.joml.Vector3f dataPoint, org.joml.Vector3f bezierLeftTime, org.joml.Vector3f bezierLeftValue, org.joml.Vector3f bezierRightTime, org.joml.Vector3f bezierRightValue) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    BBKeyframe(String uuid, String channel, float time, int color, BBEasing interpolation, boolean uniform, org.joml.Vector3f dataPoint, org.joml.Vector3f bezierLeftTime, org.joml.Vector3f bezierLeftValue, org.joml.Vector3f bezierRightTime, org.joml.Vector3f bezierRightValue)
    Creates an instance of a BBKeyframe record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.joml.Vector3f
    Returns the value of the bezierLeftTime record component.
    org.joml.Vector3f
    Returns the value of the bezierLeftValue record component.
    org.joml.Vector3f
    Returns the value of the bezierRightTime record component.
    org.joml.Vector3f
    Returns the value of the bezierRightValue record component.
    Returns the value of the channel record component.
    int
    Returns the value of the color record component.
    org.joml.Vector3f
    Returns the value of the dataPoint record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the interpolation record component.
    float
    Returns the value of the time record component.
    final String
    Returns a string representation of this record class.
    boolean
    Returns the value of the uniform record component.
    Returns the value of the uuid record component.

    Methods inherited from class Object

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

    • BBKeyframe

      public BBKeyframe(String uuid, String channel, float time, int color, BBEasing interpolation, boolean uniform, org.joml.Vector3f dataPoint, org.joml.Vector3f bezierLeftTime, org.joml.Vector3f bezierLeftValue, org.joml.Vector3f bezierRightTime, org.joml.Vector3f bezierRightValue)
      Creates an instance of a BBKeyframe record class.
      Parameters:
      uuid - the value for the uuid record component
      channel - the value for the channel record component
      time - the value for the time record component
      color - the value for the color record component
      interpolation - the value for the interpolation record component
      uniform - the value for the uniform record component
      dataPoint - the value for the dataPoint record component
      bezierLeftTime - the value for the bezierLeftTime record component
      bezierLeftValue - the value for the bezierLeftValue record component
      bezierRightTime - the value for the bezierRightTime record component
      bezierRightValue - the value for the bezierRightValue 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • uuid

      public String uuid()
      Returns the value of the uuid record component.
      Returns:
      the value of the uuid record component
    • channel

      public String channel()
      Returns the value of the channel record component.
      Returns:
      the value of the channel record component
    • time

      public float time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • interpolation

      public BBEasing interpolation()
      Returns the value of the interpolation record component.
      Returns:
      the value of the interpolation record component
    • uniform

      public boolean uniform()
      Returns the value of the uniform record component.
      Returns:
      the value of the uniform record component
    • dataPoint

      public org.joml.Vector3f dataPoint()
      Returns the value of the dataPoint record component.
      Returns:
      the value of the dataPoint record component
    • bezierLeftTime

      public org.joml.Vector3f bezierLeftTime()
      Returns the value of the bezierLeftTime record component.
      Returns:
      the value of the bezierLeftTime record component
    • bezierLeftValue

      public org.joml.Vector3f bezierLeftValue()
      Returns the value of the bezierLeftValue record component.
      Returns:
      the value of the bezierLeftValue record component
    • bezierRightTime

      public org.joml.Vector3f bezierRightTime()
      Returns the value of the bezierRightTime record component.
      Returns:
      the value of the bezierRightTime record component
    • bezierRightValue

      public org.joml.Vector3f bezierRightValue()
      Returns the value of the bezierRightValue record component.
      Returns:
      the value of the bezierRightValue record component