Contents
Record Class DebugSupport.PathWaypointVisData
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.npc.role.support.DebugSupport.PathWaypointVisData
- Record Components:
position- The world position of the waypoint.isCurrentTarget- Whether this is the current target waypoint.isEndNode- Whether this is the final destination node.isSeekTarget- Whether this is a seek/steering target (not pathfinding).
- Enclosing class:
DebugSupport
public static record DebugSupport.PathWaypointVisData(org.joml.Vector3d position, boolean isCurrentTarget, boolean isEndNode, boolean isSeekTarget)
extends Record
Data for visualizing a path waypoint.
-
Constructor Summary
ConstructorsConstructorDescriptionPathWaypointVisData(org.joml.Vector3d position, boolean isCurrentTarget, boolean isEndNode, boolean isSeekTarget) Creates an instance of aPathWaypointVisDatarecord 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.booleanReturns the value of theisCurrentTargetrecord component.booleanReturns the value of theisEndNoderecord component.booleanReturns the value of theisSeekTargetrecord component.org.joml.Vector3dposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PathWaypointVisData
public PathWaypointVisData(org.joml.Vector3d position, boolean isCurrentTarget, boolean isEndNode, boolean isSeekTarget) Creates an instance of aPathWaypointVisDatarecord class.- Parameters:
position- the value for thepositionrecord componentisCurrentTarget- the value for theisCurrentTargetrecord componentisEndNode- the value for theisEndNoderecord componentisSeekTarget- the value for theisSeekTargetrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
position
-
isCurrentTarget
public boolean isCurrentTarget()Returns the value of theisCurrentTargetrecord component.- Returns:
- the value of the
isCurrentTargetrecord component
-
isEndNode
-
isSeekTarget
public boolean isSeekTarget()Returns the value of theisSeekTargetrecord component.- Returns:
- the value of the
isSeekTargetrecord component
-