Record Class CameraInstruction.Spline
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraInstruction.Spline
- Enclosing class:
CameraInstruction
public static record CameraInstruction.Spline(float totalTime, int type, List<CameraInstruction.Vec3> curve, List<CameraInstruction.Progress> progress, List<CameraInstruction.Rotation> rotations, String identifier, boolean loadFromJson)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpline(float totalTime, int type, List<CameraInstruction.Vec3> curve, List<CameraInstruction.Progress> progress, List<CameraInstruction.Rotation> rotations, String identifier, boolean loadFromJson) Creates an instance of aSplinerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncompile()curve()Returns the value of thecurverecord 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 theidentifierrecord component.booleanReturns the value of theloadFromJsonrecord component.progress()Returns the value of theprogressrecord component.Returns the value of therotationsrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of thetotalTimerecord component.inttype()Returns the value of thetyperecord component.
-
Constructor Details
-
Spline
public Spline(float totalTime, int type, List<CameraInstruction.Vec3> curve, List<CameraInstruction.Progress> progress, List<CameraInstruction.Rotation> rotations, String identifier, boolean loadFromJson) Creates an instance of aSplinerecord class.- Parameters:
totalTime- the value for thetotalTimerecord componenttype- the value for thetyperecord componentcurve- the value for thecurverecord componentprogress- the value for theprogressrecord componentrotations- the value for therotationsrecord componentidentifier- the value for theidentifierrecord componentloadFromJson- the value for theloadFromJsonrecord component
-
-
Method Details
-
compile
-
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. -
totalTime
public float totalTime()Returns the value of thetotalTimerecord component.- Returns:
- the value of the
totalTimerecord component
-
type
public int type()Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
curve
Returns the value of thecurverecord component.- Returns:
- the value of the
curverecord component
-
progress
Returns the value of theprogressrecord component.- Returns:
- the value of the
progressrecord component
-
rotations
Returns the value of therotationsrecord component.- Returns:
- the value of the
rotationsrecord component
-
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
loadFromJson
public boolean loadFromJson()Returns the value of theloadFromJsonrecord component.- Returns:
- the value of the
loadFromJsonrecord component
-