Contents
Record Class DebugSupport.EntityVisData
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.npc.role.support.DebugSupport.EntityVisData
- Enclosing class:
DebugSupport
public static record DebugSupport.EntityVisData(int sensorColorIndex, boolean matched)
extends Record
Data for visualizing an entity that was checked by a sensor.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityVisData(int sensorColorIndex, boolean matched) Creates an instance of aEntityVisDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanmatched()Returns the value of thematchedrecord component.intReturns the value of thesensorColorIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityVisData
public EntityVisData(int sensorColorIndex, boolean matched) Creates an instance of aEntityVisDatarecord class.- Parameters:
sensorColorIndex- the value for thesensorColorIndexrecord componentmatched- the value for thematchedrecord 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. -
sensorColorIndex
public int sensorColorIndex()Returns the value of thesensorColorIndexrecord component.- Returns:
- the value of the
sensorColorIndexrecord component
-
matched
public boolean matched()Returns the value of thematchedrecord component.- Returns:
- the value of the
matchedrecord component
-