Record Class ActorAnimationCommand
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.ActorAnimationCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.viaversion.viaversion.api.type.Type<ActorAnimationCommand> -
Constructor Summary
ConstructorsConstructorDescriptionActorAnimationCommand(String animation, String nextState, String stopExpression, int stopExpressionVersion, String controller, float blendOutTime) Creates an instance of aActorAnimationCommandrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanimationrecord component.floatReturns the value of theblendOutTimerecord component.Returns the value of thecontrollerrecord 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 thenextStaterecord component.Returns the value of thestopExpressionrecord component.intReturns the value of thestopExpressionVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
ActorAnimationCommand
public ActorAnimationCommand(String animation, String nextState, String stopExpression, int stopExpressionVersion, String controller, float blendOutTime) Creates an instance of aActorAnimationCommandrecord class.- Parameters:
animation- the value for theanimationrecord componentnextState- the value for thenextStaterecord componentstopExpression- the value for thestopExpressionrecord componentstopExpressionVersion- the value for thestopExpressionVersionrecord componentcontroller- the value for thecontrollerrecord componentblendOutTime- the value for theblendOutTimerecord 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. -
animation
Returns the value of theanimationrecord component.- Returns:
- the value of the
animationrecord component
-
nextState
Returns the value of thenextStaterecord component.- Returns:
- the value of the
nextStaterecord component
-
stopExpression
Returns the value of thestopExpressionrecord component.- Returns:
- the value of the
stopExpressionrecord component
-
stopExpressionVersion
public int stopExpressionVersion()Returns the value of thestopExpressionVersionrecord component.- Returns:
- the value of the
stopExpressionVersionrecord component
-
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-
blendOutTime
public float blendOutTime()Returns the value of theblendOutTimerecord component.- Returns:
- the value of the
blendOutTimerecord component
-