Package ac.boar.anticheat.ack.types
Record Class VehicleSetAck
java.lang.Object
java.lang.Record
ac.boar.anticheat.ack.types.VehicleSetAck
- All Implemented Interfaces:
Acknowledgment
public record VehicleSetAck(long vehicleRuntimeId, long vehicleUniqueId, long sentTick, long sentNs)
extends Record
implements Acknowledgment
-
Constructor Summary
ConstructorsConstructorDescriptionVehicleSetAck(long vehicleRuntimeId, long vehicleUniqueId, long sentTick, long sentNs) Creates an instance of aVehicleSetAckrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longsentNs()Returns the value of thesentNsrecord component.longsentTick()Returns the value of thesentTickrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevehicleRuntimeIdrecord component.longReturns the value of thevehicleUniqueIdrecord component.
-
Constructor Details
-
VehicleSetAck
public VehicleSetAck(long vehicleRuntimeId, long vehicleUniqueId, long sentTick, long sentNs) Creates an instance of aVehicleSetAckrecord class.- Parameters:
vehicleRuntimeId- the value for thevehicleRuntimeIdrecord componentvehicleUniqueId- the value for thevehicleUniqueIdrecord componentsentTick- the value for thesentTickrecord componentsentNs- the value for thesentNsrecord 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
-
vehicleUniqueId
public long vehicleUniqueId()Returns the value of thevehicleUniqueIdrecord component.- Returns:
- the value of the
vehicleUniqueIdrecord component
-
sentTick
public long sentTick()Returns the value of thesentTickrecord component.- Returns:
- the value of the
sentTickrecord component
-
sentNs
public long sentNs()Returns the value of thesentNsrecord component.- Returns:
- the value of the
sentNsrecord component
-