Record Class BlockbenchKeyFrameImpl

java.lang.Object
java.lang.Record
me.rochblondiaux.blockbench.animation.keyframe.BlockbenchKeyFrameImpl
All Implemented Interfaces:
BlockbenchKeyFrame

public record BlockbenchKeyFrameImpl(UUID uniqueId, String name, String type, String channel, float time, int color, String interpolation, boolean bezierLinked, float[] bezierLeftTime, float[] bezierLeftValue, float[] bezierRightTime, float[] bezierRightValue, List<DataPoint> dataPoints) extends Record implements BlockbenchKeyFrame
  • Constructor Summary

    Constructors
    Constructor
    Description
    BlockbenchKeyFrameImpl(UUID uniqueId, String name, String type, String channel, float time, int color, String interpolation, boolean bezierLinked, float[] bezierLeftTime, float[] bezierLeftValue, float[] bezierRightTime, float[] bezierRightValue, List<DataPoint> dataPoints)
    Creates an instance of a BlockbenchKeyFrameImpl record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    Returns the value of the bezierLeftTime record component.
    float[]
    Returns the value of the bezierLeftValue record component.
    boolean
    Returns the value of the bezierLinked record component.
    float[]
    Returns the value of the bezierRightTime record component.
    float[]
    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.
    Returns the value of the dataPoints 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.
    Returns the value of the name record component.
    float
    Returns the value of the time record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.
    Returns the value of the uniqueId record component.

    Methods inherited from class java.lang.Object

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

    • BlockbenchKeyFrameImpl

      public BlockbenchKeyFrameImpl(UUID uniqueId, String name, String type, String channel, float time, int color, String interpolation, boolean bezierLinked, float[] bezierLeftTime, float[] bezierLeftValue, float[] bezierRightTime, float[] bezierRightValue, List<DataPoint> dataPoints)
      Creates an instance of a BlockbenchKeyFrameImpl record class.
      Parameters:
      uniqueId - the value for the uniqueId record component
      name - the value for the name record component
      type - the value for the type 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
      bezierLinked - the value for the bezierLinked 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
      dataPoints - the value for the dataPoints 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 '=='.
      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.
    • uniqueId

      @SerializedName("uuid") public UUID uniqueId()
      Returns the value of the uniqueId record component.
      Specified by:
      uniqueId in interface BlockbenchKeyFrame
      Returns:
      the value of the uniqueId record component
    • name

      public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • type

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

      public String channel()
      Returns the value of the channel record component.
      Specified by:
      channel in interface BlockbenchKeyFrame
      Returns:
      the value of the channel record component
    • time

      public float time()
      Returns the value of the time record component.
      Specified by:
      time in interface BlockbenchKeyFrame
      Returns:
      the value of the time record component
    • color

      public int color()
      Returns the value of the color record component.
      Specified by:
      color in interface BlockbenchKeyFrame
      Returns:
      the value of the color record component
    • interpolation

      public String interpolation()
      Returns the value of the interpolation record component.
      Specified by:
      interpolation in interface BlockbenchKeyFrame
      Returns:
      the value of the interpolation record component
    • bezierLinked

      @SerializedName("bezier_linked") public boolean bezierLinked()
      Returns the value of the bezierLinked record component.
      Specified by:
      bezierLinked in interface BlockbenchKeyFrame
      Returns:
      the value of the bezierLinked record component
    • bezierLeftTime

      @SerializedName("bezier_left_time") public float[] bezierLeftTime()
      Returns the value of the bezierLeftTime record component.
      Specified by:
      bezierLeftTime in interface BlockbenchKeyFrame
      Returns:
      the value of the bezierLeftTime record component
    • bezierLeftValue

      @SerializedName("bezier_left_value") public float[] bezierLeftValue()
      Returns the value of the bezierLeftValue record component.
      Specified by:
      bezierLeftValue in interface BlockbenchKeyFrame
      Returns:
      the value of the bezierLeftValue record component
    • bezierRightTime

      @SerializedName("bezier_right_time") public float[] bezierRightTime()
      Returns the value of the bezierRightTime record component.
      Specified by:
      bezierRightTime in interface BlockbenchKeyFrame
      Returns:
      the value of the bezierRightTime record component
    • bezierRightValue

      @SerializedName("bezier_right_value") public float[] bezierRightValue()
      Returns the value of the bezierRightValue record component.
      Specified by:
      bezierRightValue in interface BlockbenchKeyFrame
      Returns:
      the value of the bezierRightValue record component
    • dataPoints

      @SerializedName("data_points") public List<DataPoint> dataPoints()
      Returns the value of the dataPoints record component.
      Specified by:
      dataPoints in interface BlockbenchKeyFrame
      Returns:
      the value of the dataPoints record component