Package ac.boar.anticheat.player.data
Record Class VehicleData.BoatActorState
java.lang.Object
java.lang.Record
ac.boar.anticheat.player.data.VehicleData.BoatActorState
- Enclosing class:
VehicleData
-
Constructor Summary
ConstructorsConstructorDescriptionBoatActorState(Vec3 position, Vec3 velocity, Box box, float pitch, float yaw, float angularVelocity, boolean onGround) Creates an instance of aBoatActorStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theangularVelocityrecord component.box()Returns the value of theboxrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanonGround()Returns the value of theonGroundrecord component.floatpitch()Returns the value of thepitchrecord component.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.velocity()Returns the value of thevelocityrecord component.floatyaw()Returns the value of theyawrecord component.
-
Constructor Details
-
BoatActorState
public BoatActorState(Vec3 position, Vec3 velocity, Box box, float pitch, float yaw, float angularVelocity, boolean onGround) Creates an instance of aBoatActorStaterecord class.- Parameters:
position- the value for thepositionrecord componentvelocity- the value for thevelocityrecord componentbox- the value for theboxrecord componentpitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentangularVelocity- the value for theangularVelocityrecord componentonGround- the value for theonGroundrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
velocity
Returns the value of thevelocityrecord component.- Returns:
- the value of the
velocityrecord component
-
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
yaw
public float yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
angularVelocity
public float angularVelocity()Returns the value of theangularVelocityrecord component.- Returns:
- the value of the
angularVelocityrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-