Package ac.boar.anticheat.ack.types
Record Class PassengerLinkAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.PassengerLinkAck
- All Implemented Interfaces:
Acknowledgment
public record PassengerLinkAck(long vehicleRuntimeId, long riderUniqueId, boolean riderIsPlayer, boolean remove, float angularVelocity)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionPassengerLinkAck(long vehicleRuntimeId, long riderUniqueId, boolean riderIsPlayer, boolean remove, float angularVelocity) Creates an instance of aPassengerLinkAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theangularVelocityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanremove()Returns the value of theremoverecord component.booleanReturns the value of theriderIsPlayerrecord component.longReturns the value of theriderUniqueIdrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevehicleRuntimeIdrecord component.
-
Constructor Details
-
PassengerLinkAck
public PassengerLinkAck(long vehicleRuntimeId, long riderUniqueId, boolean riderIsPlayer, boolean remove, float angularVelocity) Creates an instance of aPassengerLinkAckrecord class.- Parameters:
vehicleRuntimeId- the value for thevehicleRuntimeIdrecord componentriderUniqueId- the value for theriderUniqueIdrecord componentriderIsPlayer- the value for theriderIsPlayerrecord componentremove- the value for theremoverecord componentangularVelocity- the value for theangularVelocityrecord component
-
-
Method Details
-
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. -
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. -
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. All components in this record class are compared with '=='. -
vehicleRuntimeId
public long vehicleRuntimeId()Returns the value of thevehicleRuntimeIdrecord component.- Returns:
- the value of the
vehicleRuntimeIdrecord component
-
riderUniqueId
public long riderUniqueId()Returns the value of theriderUniqueIdrecord component.- Returns:
- the value of the
riderUniqueIdrecord component
-
riderIsPlayer
public boolean riderIsPlayer()Returns the value of theriderIsPlayerrecord component.- Returns:
- the value of the
riderIsPlayerrecord component
-
remove
public boolean remove()Returns the value of theremoverecord component.- Returns:
- the value of the
removerecord component
-
angularVelocity
public float angularVelocity()Returns the value of theangularVelocityrecord component.- Returns:
- the value of the
angularVelocityrecord component
-