Record Class TrackedWaypointPacket.Waypoint
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.TrackedWaypointPacket.Waypoint
- Enclosing class:
TrackedWaypointPacket
public static record TrackedWaypointPacket.Waypoint(Either<UUID,String> id, TrackedWaypointPacket.Icon icon, TrackedWaypointPacket.Target target)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWaypoint(Either<UUID, String> id, TrackedWaypointPacket.Icon icon, TrackedWaypointPacket.Target target) Creates an instance of aWaypointrecord 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.icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
-
Constructor Details
-
Waypoint
public Waypoint(Either<UUID, String> id, TrackedWaypointPacket.Icon icon, TrackedWaypointPacket.Target target) Creates an instance of aWaypointrecord class.- Parameters:
id- the value for theidrecord componenticon- the value for theiconrecord componenttarget- the value for thetargetrecord 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 withObjects::equals(Object,Object). -
id
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-