Record Class CameraInstruction.Progress
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraInstruction.Progress
- Enclosing class:
CameraInstruction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneaseType()Returns the value of theeaseTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floattime()Returns the value of thetimerecord component.final StringtoString()Returns a string representation of this record class.floatvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
Progress
Creates an instance of aProgressrecord class.- Parameters:
value- the value for thevaluerecord componenttime- the value for thetimerecord componenteaseType- the value for theeaseTyperecord 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. -
value
public float value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
time
public float time()Returns the value of thetimerecord component.- Returns:
- the value of the
timerecord component
-
easeType
Returns the value of theeaseTyperecord component.- Returns:
- the value of the
easeTyperecord component
-