Record Class CameraAimAssistData.Command

java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraAimAssistData.Command
Enclosing class:
CameraAimAssistData

public static record CameraAimAssistData.Command(String preset, float angleX, float angleY, float distance, int mode, int action, boolean debug) extends Record
  • Field Summary

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

    Constructors
    Constructor
    Description
    Command(String preset, float angleX, float angleY, float distance, int mode, int action, boolean debug)
    Creates an instance of a Command record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the action record component.
    float
    Returns the value of the angleX record component.
    float
    Returns the value of the angleY record component.
    boolean
    Returns the value of the debug record component.
    float
    Returns the value of the distance record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the mode record component.
    Returns the value of the preset 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

    • Command

      public Command(String preset, float angleX, float angleY, float distance, int mode, int action, boolean debug)
      Creates an instance of a Command record class.
      Parameters:
      preset - the value for the preset record component
      angleX - the value for the angleX record component
      angleY - the value for the angleY record component
      distance - the value for the distance record component
      mode - the value for the mode record component
      action - the value for the action record component
      debug - the value for the debug 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.
    • preset

      public String preset()
      Returns the value of the preset record component.
      Returns:
      the value of the preset record component
    • angleX

      public float angleX()
      Returns the value of the angleX record component.
      Returns:
      the value of the angleX record component
    • angleY

      public float angleY()
      Returns the value of the angleY record component.
      Returns:
      the value of the angleY record component
    • distance

      public float distance()
      Returns the value of the distance record component.
      Returns:
      the value of the distance record component
    • mode

      public int mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • action

      public int action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • debug

      public boolean debug()
      Returns the value of the debug record component.
      Returns:
      the value of the debug record component