Package ac.boar.anticheat.util.math
Record Class ReachUtil.Result
java.lang.Object
java.lang.Record
ac.boar.anticheat.util.math.ReachUtil.Result
- Enclosing class:
ReachUtil
public static record ReachUtil.Result(float distance, @Nullable org.cloudburstmc.math.vector.Vector3i obstruction)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResult(float distance, @Nullable org.cloudburstmc.math.vector.Vector3i obstruction) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatdistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable org.cloudburstmc.math.vector.Vector3iReturns the value of theobstructionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MISS
-
-
Constructor Details
-
Result
public Result(float distance, @Nullable @Nullable org.cloudburstmc.math.vector.Vector3i obstruction) Creates an instance of aResultrecord class.- Parameters:
distance- the value for thedistancerecord componentobstruction- the value for theobstructionrecord 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 '=='. -
distance
public float distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
obstruction
@Nullable public @Nullable org.cloudburstmc.math.vector.Vector3i obstruction()Returns the value of theobstructionrecord component.- Returns:
- the value of the
obstructionrecord component
-