Record Class ClientDebugSubscriptionRequestPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientDebugSubscriptionRequestPacket
- All Implemented Interfaces:
ClientPacket
public record ClientDebugSubscriptionRequestPacket(Set<DebugSubscription<?>> subscriptions)
extends Record
implements ClientPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NetworkBuffer.Type<ClientDebugSubscriptionRequestPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientDebugSubscriptionRequestPacket(Set<DebugSubscription<?>> subscriptions) Creates an instance of aClientDebugSubscriptionRequestPacketrecord 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.Set<DebugSubscription<?>> Returns the value of thesubscriptionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientDebugSubscriptionRequestPacket
Creates an instance of aClientDebugSubscriptionRequestPacketrecord class.- Parameters:
subscriptions- the value for thesubscriptionsrecord 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). -
subscriptions
Returns the value of thesubscriptionsrecord component.- Returns:
- the value of the
subscriptionsrecord component
-