Record Class TrackedWaypointPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.TrackedWaypointPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Configuration, ServerPacket.Play
public record TrackedWaypointPacket(TrackedWaypointPacket.Operation operation, TrackedWaypointPacket.Waypoint waypoint)
extends Record
implements ServerPacket.Configuration, ServerPacket.Play
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic interfacestatic final recordNested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrackedWaypointPacket(TrackedWaypointPacket.Operation operation, TrackedWaypointPacket.Waypoint waypoint) Creates an instance of aTrackedWaypointPacketrecord 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.Returns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.waypoint()Returns the value of thewaypointrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
TrackedWaypointPacket
public TrackedWaypointPacket(TrackedWaypointPacket.Operation operation, TrackedWaypointPacket.Waypoint waypoint) Creates an instance of aTrackedWaypointPacketrecord class.- Parameters:
operation- the value for theoperationrecord componentwaypoint- the value for thewaypointrecord 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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
waypoint
Returns the value of thewaypointrecord component.- Returns:
- the value of the
waypointrecord component
-