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(@NotNull TrackedWaypointPacket.Operation operation, @NotNull 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 net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrackedWaypointPacket(@NotNull TrackedWaypointPacket.Operation operation, @NotNull 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.@NotNull TrackedWaypointPacket.OperationReturns the value of theoperationrecord component.final StringtoString()Returns a string representation of this record class.@NotNull TrackedWaypointPacket.Waypointwaypoint()Returns the value of thewaypointrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
TrackedWaypointPacket
public TrackedWaypointPacket(@NotNull @NotNull TrackedWaypointPacket.Operation operation, @NotNull @NotNull TrackedWaypointPacket.Waypoint waypoint) Creates an instance of aTrackedWaypointPacketrecord class.- Parameters:
operation- the value for theoperationrecord componentwaypoint- the value for thewaypointrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-