Contents
Record Class DebugSupport.SensorVisData
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.npc.role.support.DebugSupport.SensorVisData
- Record Components:
range- The outer detection range.minRange- The inner detection range (minimum distance).colorIndex- The color index for this sensor.viewAngle- The view cone angle in radians (0 for full circle).
- Enclosing class:
DebugSupport
public static record DebugSupport.SensorVisData(double range, double minRange, int colorIndex, double viewAngle)
extends Record
Data for visualizing a single sensor's detection range.
-
Constructor Summary
ConstructorsConstructorDescriptionSensorVisData(double range, double minRange, int colorIndex, double viewAngle) Creates an instance of aSensorVisDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecolorIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleminRange()Returns the value of theminRangerecord component.doublerange()Returns the value of therangerecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theviewAnglerecord component.
-
Constructor Details
-
SensorVisData
public SensorVisData(double range, double minRange, int colorIndex, double viewAngle) Creates an instance of aSensorVisDatarecord class.- Parameters:
range- the value for therangerecord componentminRange- the value for theminRangerecord componentcolorIndex- the value for thecolorIndexrecord componentviewAngle- the value for theviewAnglerecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
range
-
minRange
-
colorIndex
public int colorIndex()Returns the value of thecolorIndexrecord component.- Returns:
- the value of the
colorIndexrecord component
-
viewAngle
-