Package ac.boar.anticheat.prediction
Record Class UncertainRunner.BoatTakeoverStart
java.lang.Object
java.lang.Record
ac.boar.anticheat.prediction.UncertainRunner.BoatTakeoverStart
- Enclosing class:
UncertainRunner
public static record UncertainRunner.BoatTakeoverStart(BoatTakeoverTransition transition, Vec3 position, Box box)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBoatTakeoverStart(BoatTakeoverTransition transition, Vec3 position, Box box) Creates an instance of aBoatTakeoverStartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbox()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.position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransitionrecord component.
-
Constructor Details
-
BoatTakeoverStart
Creates an instance of aBoatTakeoverStartrecord class.- Parameters:
transition- the value for thetransitionrecord componentposition- the value for thepositionrecord componentbox- the value for theboxrecord 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 withObjects::equals(Object,Object). -
transition
Returns the value of thetransitionrecord component.- Returns:
- the value of the
transitionrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
box
Returns the value of theboxrecord component.- Returns:
- the value of the
boxrecord component
-