Record Class CameraAimAssistData.Command
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.protocol.model.CameraAimAssistData.Command
- Enclosing class:
CameraAimAssistData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.viaversion.viaversion.api.type.Type<CameraAimAssistData.Command> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaction()Returns the value of theactionrecord component.floatangleX()Returns the value of theangleXrecord component.floatangleY()Returns the value of theangleYrecord component.booleandebug()Returns the value of thedebugrecord component.floatdistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmode()Returns the value of themoderecord component.preset()Returns the value of thepresetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
Command
public Command(String preset, float angleX, float angleY, float distance, int mode, int action, boolean debug) Creates an instance of aCommandrecord class.- Parameters:
preset- the value for thepresetrecord componentangleX- the value for theangleXrecord componentangleY- the value for theangleYrecord componentdistance- the value for thedistancerecord componentmode- the value for themoderecord componentaction- the value for theactionrecord componentdebug- the value for thedebugrecord 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. -
preset
Returns the value of thepresetrecord component.- Returns:
- the value of the
presetrecord component
-
angleX
public float angleX()Returns the value of theangleXrecord component.- Returns:
- the value of the
angleXrecord component
-
angleY
public float angleY()Returns the value of theangleYrecord component.- Returns:
- the value of the
angleYrecord component
-
distance
public float distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
mode
public int mode()Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
action
public int action()Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
debug
public boolean debug()Returns the value of thedebugrecord component.- Returns:
- the value of the
debugrecord component
-