Record Class ActorAnimationCommand

java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.ActorAnimationCommand

public record ActorAnimationCommand(String animation, String nextState, String stopExpression, int stopExpressionVersion, String controller, float blendOutTime) extends Record
Runtime controller instructions, including the authored stop-expression version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.viaversion.viaversion.api.type.Type<ActorAnimationCommand>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActorAnimationCommand(String animation, String nextState, String stopExpression, int stopExpressionVersion, String controller, float blendOutTime)
    Creates an instance of a ActorAnimationCommand record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the animation record component.
    float
    Returns the value of the blendOutTime record component.
    Returns the value of the controller record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the nextState record component.
    Returns the value of the stopExpression record component.
    int
    Returns the value of the stopExpressionVersion record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ActorAnimationCommand

      public ActorAnimationCommand(String animation, String nextState, String stopExpression, int stopExpressionVersion, String controller, float blendOutTime)
      Creates an instance of a ActorAnimationCommand record class.
      Parameters:
      animation - the value for the animation record component
      nextState - the value for the nextState record component
      stopExpression - the value for the stopExpression record component
      stopExpressionVersion - the value for the stopExpressionVersion record component
      controller - the value for the controller record component
      blendOutTime - the value for the blendOutTime record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • animation

      public String animation()
      Returns the value of the animation record component.
      Returns:
      the value of the animation record component
    • nextState

      public String nextState()
      Returns the value of the nextState record component.
      Returns:
      the value of the nextState record component
    • stopExpression

      public String stopExpression()
      Returns the value of the stopExpression record component.
      Returns:
      the value of the stopExpression record component
    • stopExpressionVersion

      public int stopExpressionVersion()
      Returns the value of the stopExpressionVersion record component.
      Returns:
      the value of the stopExpressionVersion record component
    • controller

      public String controller()
      Returns the value of the controller record component.
      Returns:
      the value of the controller record component
    • blendOutTime

      public float blendOutTime()
      Returns the value of the blendOutTime record component.
      Returns:
      the value of the blendOutTime record component