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
ConstructorsConstructorDescriptionBBKeyframe(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 aBBKeyframerecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joml.Vector3fReturns the value of thebezierLeftTimerecord component.org.joml.Vector3fReturns the value of thebezierLeftValuerecord component.org.joml.Vector3fReturns the value of thebezierRightTimerecord component.org.joml.Vector3fReturns the value of thebezierRightValuerecord component.channel()Returns the value of thechannelrecord component.intcolor()Returns the value of thecolorrecord component.org.joml.Vector3fReturns the value of thedataPointrecord 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.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.booleanuniform()Returns the value of theuniformrecord component.uuid()Returns the value of theuuidrecord component.
-
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 aBBKeyframerecord class.- Parameters:
uuid- the value for theuuidrecord componentchannel- the value for thechannelrecord componenttime- the value for thetimerecord componentcolor- the value for thecolorrecord componentinterpolation- the value for theinterpolationrecord componentuniform- the value for theuniformrecord componentdataPoint- the value for thedataPointrecord componentbezierLeftTime- the value for thebezierLeftTimerecord componentbezierLeftValue- the value for thebezierLeftValuerecord componentbezierRightTime- the value for thebezierRightTimerecord componentbezierRightValue- the value for thebezierRightValuerecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
interpolation
Returns the value of theinterpolationrecord component.- Returns:
- the value of the
interpolationrecord component
-
uniform
public boolean uniform()Returns the value of theuniformrecord component.- Returns:
- the value of the
uniformrecord component
-
dataPoint
public org.joml.Vector3f dataPoint()Returns the value of thedataPointrecord component.- Returns:
- the value of the
dataPointrecord component
-
bezierLeftTime
public org.joml.Vector3f bezierLeftTime()Returns the value of thebezierLeftTimerecord component.- Returns:
- the value of the
bezierLeftTimerecord component
-
bezierLeftValue
public org.joml.Vector3f bezierLeftValue()Returns the value of thebezierLeftValuerecord component.- Returns:
- the value of the
bezierLeftValuerecord component
-
bezierRightTime
public org.joml.Vector3f bezierRightTime()Returns the value of thebezierRightTimerecord component.- Returns:
- the value of the
bezierRightTimerecord component
-
bezierRightValue
public org.joml.Vector3f bezierRightValue()Returns the value of thebezierRightValuerecord component.- Returns:
- the value of the
bezierRightValuerecord component
-