Package ac.boar.anticheat.collision
Record Class Collider.MoveResult
java.lang.Object
java.lang.Record
ac.boar.anticheat.collision.Collider.MoveResult
- Enclosing class:
Collider
-
Constructor Summary
ConstructorsConstructorDescriptionMoveResult(Vec3 requestedMovement, Vec3 clippedMovement, Box finalBox, List<CollisionRecord> records) Creates an instance of aMoveResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclippedMovementrecord component.final booleanIndicates whether some other object is "equal to" this one.finalBox()Returns the value of thefinalBoxrecord component.final inthashCode()Returns a hash code value for this object.records()Returns the value of therecordsrecord component.Returns the value of therequestedMovementrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MoveResult
public MoveResult(Vec3 requestedMovement, Vec3 clippedMovement, Box finalBox, List<CollisionRecord> records) Creates an instance of aMoveResultrecord class.- Parameters:
requestedMovement- the value for therequestedMovementrecord componentclippedMovement- the value for theclippedMovementrecord componentfinalBox- the value for thefinalBoxrecord componentrecords- the value for therecordsrecord 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). -
requestedMovement
Returns the value of therequestedMovementrecord component.- Returns:
- the value of the
requestedMovementrecord component
-
clippedMovement
Returns the value of theclippedMovementrecord component.- Returns:
- the value of the
clippedMovementrecord component
-
finalBox
Returns the value of thefinalBoxrecord component.- Returns:
- the value of the
finalBoxrecord component
-
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-