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
ConstructorsConstructorDescriptionBlockbenchKeyFrameImpl(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 aBlockbenchKeyFrameImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Returns the value of thebezierLeftTimerecord component.float[]Returns the value of thebezierLeftValuerecord component.booleanReturns the value of thebezierLinkedrecord component.float[]Returns the value of thebezierRightTimerecord component.float[]Returns the value of thebezierRightValuerecord component.channel()Returns the value of thechannelrecord component.intcolor()Returns the value of thecolorrecord component.Returns the value of thedataPointsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterpolationrecord component.name()Returns the value of thenamerecord component.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.uniqueId()Returns the value of theuniqueIdrecord component.
-
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 aBlockbenchKeyFrameImplrecord class.- Parameters:
uniqueId- the value for theuniqueIdrecord componentname- the value for thenamerecord componenttype- the value for thetyperecord componentchannel- the value for thechannelrecord componenttime- the value for thetimerecord componentcolor- the value for thecolorrecord componentinterpolation- the value for theinterpolationrecord componentbezierLinked- the value for thebezierLinkedrecord componentbezierLeftTime- the value for thebezierLeftTimerecord componentbezierLeftValue- the value for thebezierLeftValuerecord componentbezierRightTime- the value for thebezierRightTimerecord componentbezierRightValue- the value for thebezierRightValuerecord componentdataPoints- the value for thedataPointsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
uniqueId
Returns the value of theuniqueIdrecord component.- Specified by:
uniqueIdin interfaceBlockbenchKeyFrame- Returns:
- the value of the
uniqueIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
channel
Returns the value of thechannelrecord component.- Specified by:
channelin interfaceBlockbenchKeyFrame- Returns:
- the value of the
channelrecord component
-
time
public float time()Returns the value of thetimerecord component.- Specified by:
timein interfaceBlockbenchKeyFrame- Returns:
- the value of the
timerecord component
-
color
public int color()Returns the value of thecolorrecord component.- Specified by:
colorin interfaceBlockbenchKeyFrame- Returns:
- the value of the
colorrecord component
-
interpolation
Returns the value of theinterpolationrecord component.- Specified by:
interpolationin interfaceBlockbenchKeyFrame- Returns:
- the value of the
interpolationrecord component
-
bezierLinked
@SerializedName("bezier_linked") public boolean bezierLinked()Returns the value of thebezierLinkedrecord component.- Specified by:
bezierLinkedin interfaceBlockbenchKeyFrame- Returns:
- the value of the
bezierLinkedrecord component
-
bezierLeftTime
@SerializedName("bezier_left_time") public float[] bezierLeftTime()Returns the value of thebezierLeftTimerecord component.- Specified by:
bezierLeftTimein interfaceBlockbenchKeyFrame- Returns:
- the value of the
bezierLeftTimerecord component
-
bezierLeftValue
@SerializedName("bezier_left_value") public float[] bezierLeftValue()Returns the value of thebezierLeftValuerecord component.- Specified by:
bezierLeftValuein interfaceBlockbenchKeyFrame- Returns:
- the value of the
bezierLeftValuerecord component
-
bezierRightTime
@SerializedName("bezier_right_time") public float[] bezierRightTime()Returns the value of thebezierRightTimerecord component.- Specified by:
bezierRightTimein interfaceBlockbenchKeyFrame- Returns:
- the value of the
bezierRightTimerecord component
-
bezierRightValue
@SerializedName("bezier_right_value") public float[] bezierRightValue()Returns the value of thebezierRightValuerecord component.- Specified by:
bezierRightValuein interfaceBlockbenchKeyFrame- Returns:
- the value of the
bezierRightValuerecord component
-
dataPoints
Returns the value of thedataPointsrecord component.- Specified by:
dataPointsin interfaceBlockbenchKeyFrame- Returns:
- the value of the
dataPointsrecord component
-